Tuesday, June 13, 2017

Unit Testing with C#

It is refreshing, after all these years, to see the same frameworks around. Matured, they are now recommended as the best options for unit testing in the C# world.

There's a newcomer, though - AutoFixture. Time to add it to the arsenal.



In summary:

  • xUnit
  • Moq
  • AutoFixture
are the things you need for unit and integration testing. Visual Studio nowadays includes a decent test runner GUI. It only takes installing the runner package for xUnit to recognize the tests.



Source: The Holy Trinity of C# Unit Testing (link)

No comments:

Post a Comment