+ 1

how do i learn unit testing in c#

links , pdfs , textbooks...any suggestion

19th Aug 2019, 9:19 AM
Fadil olatunde
3 Answers
+ 2
Maybe the MSDN resources. David Carroll what is the equivalent of JUnit for C#?
19th Aug 2019, 9:39 AM
Sonic
Sonic - avatar
+ 2
There are a lot of articles that explain the basics for getting started. Start with Google searching XUnit and NUnit. Things get a little more mind bending for those who aren't familiar with Dependency Injection (DI) Containers and the Inversion of Control (IoC) Pattern, which is a strong part of making your entire code testable in isolation of dependencies. I recommend SimpleInject. Despite its name, it's still quite powerful and exactly what is needed without making things more complicated than they need to be. I could get into more complexities, but they may not be necessary until you've got a handle on the basics with using either XUnit or NUnit.
19th Aug 2019, 1:49 PM
David Carroll
David Carroll - avatar
+ 1
thanks , i'll check it out
19th Aug 2019, 10:08 PM
Fadil olatunde