I’m rather beginner in C# world (and .Net as well), so I decided to get some advices from more experienced developers. Which free unit testing framework for C# would you advise? I came across NUnit, which seemed to look interestingly, but in it’s documentation I found out, that there were versions for .Net 1.1 and .Net 2.0. I need to use it in project targeted to .Net 3.0.
So, please let me know if:
- I can use NUnit for .Net 3.0 project?
or:
- there is something better than NUnit?
Yes. NUnit works well on .NET 3.0 and 3.5 too.
Your second question is pretty subjective. NUnit is a widely used unit testing framework for .NET. MSTest is another one that is shipped with Visual Studio. xUnit is another one.
There is a comparison on xUnit project: xUnit – Comparing xUnit.net to other frameworks