Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent to JUnit in C#?

I am coming from Java and am currently working on a C# project. What is the recommended way to go about a) unit testing existing C# code and b) accomplishing TDD for C# development?

Also is there an equivalent to EMMA / EclEmma (free yet powerful code coverage tool) for Visual Studio and C# code?

like image 471
Epaga Avatar asked Oct 06 '08 14:10

Epaga


2 Answers

1 Nunit
2 NCover or
3 PartCover (I never used it)

like image 165
Jacek Szymański Avatar answered Oct 10 '22 09:10

Jacek Szymański


NUnit is patterned after JUnit, but if you're using Visual Studio 2008 then consider the built-in unit testing framework.

like image 38
Chris Wenham Avatar answered Oct 10 '22 10:10

Chris Wenham