ASP.NET MVC Unit Test
If you're interested in following the BDD guidelines, I highly recommend xUnit.NET with Moq as a mocking framework. These two are some of the most promising and up-to-date unit testing units available these days, and together they make up both a powerful and flexible unit test framework. xUnit.NET is extremely extensible, as its Fact and Trait attributes can be extended with your own attributes, and the behavior of the test frameworks can be modified to suit your needs.
A great example of this flexibility is the ObservationAttribute and a supporting framework for testing BDD style using xunit.net, found here:
I use the aforementioned BDD style testing to create BDD tests of type Test-Class-Per-Unit for my ASP.NET MVC controllers (well, everything else I unit test too).
a source to share
ASP.Net MVC doesn't create any specific framework requirements, any of them will work fine. NUnit is the most widely used and for this reason it is my default choice.
Once you get into unit testing, some of the other frameworks offer various advanced features that you can test.
I don't know anyone using the MS unit testing framework.
a source to share
I am using MSTest :) so now you know one;)
Seriously, I think MSTest is the best framework to start with TDD. It is usable and it generates everything you need to wrap and most importantly it is integrated into visual studio ... so why don't you start with mstest and later you can switch to advanced frameworks with no problem.In short, I would recommend MSTest.
amuses
a source to share