Answer the question
In order to leave comments, you need to log in
C# unit testing best practices?
Recently, the project raised the question of the need for tests.
I used to write tests on NUnit + Moq, but I decided to ask the respected community, just in case, who uses what to write tests and what useful and automated tools and approaches they use?
Answer the question
In order to leave comments, you need to log in
I use NUnit + FakeItEasy + Autofixture + Visual Studio Online (with CI).
The most popular ones have already been answered here.
I'll add more Microsoft Fakes
Not bad for testing interaction with large external code that is difficult to dunk. An interesting example is sharepoint
's special unit testing components .
Я так понимаю речь не только про инструменты, но и про подходы, очень рекомендую книжку
The Art Of Unit Testing с примерами на C#
Также очень рекомендую FakeItEasy, после Moq кажется более интуитивным
А для BDD у кого-нибудь есть реальный опыт использования GetGauuge?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question