G
G
ggsandro2016-08-17 18:16:14
ASP.NET
ggsandro, 2016-08-17 18:16:14

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

4 answer(s)
A
AxisPod, 2016-08-18
@ggsandro

I use NUnit + FakeItEasy + Autofixture + Visual Studio Online (with CI).

D
Dmitry, 2016-08-25
@DimonSmart

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 .

A
Alexander Ryzhov, 2016-08-27
@RyzhovAlexandr

Я так понимаю речь не только про инструменты, но и про подходы, очень рекомендую книжку
The Art Of Unit Testing с примерами на C#
Также очень рекомендую FakeItEasy, после Moq кажется более интуитивным

Арина Григорьева, 2016-08-25
@sloboda

А для BDD у кого-нибудь есть реальный опыт использования GetGauuge?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question