I migrated from Java to C# and so I am wondering how to unit tests in C#. I remember using JUnit to test my Java applications. How can I unit test in C#? What are some good resources for unit testing in C# USING THE DEFAULT UNIT TESTING LIBRARY? I don’t really need a port. A good resource would be like a nice PDF file, article, or better yet, a video!
Share
NUnit is effectively an idiomatic port of JUnit to the .NET land. There is also a unit testing framework built into Visual Studio, but since you’re familiar with JUnit and NUnit is free, that would be my recommendation.
For mocking and stubbing, I like Rhino Mocks.
Finally, Roy Osherove, has a nice book The Art of Unit Testing which is a nice discussion of unit testing in general, but will also point you to other tools and resources.