Getting Started with xUnit.net (desktop)

https://xunit.github.io/docs/getting-started-desktop.html

In this article, we will demonstrate getting started with xUnit.net, showing you how to write and run your first set of unit tests.

Write your first theory

You may have wondered why your first unit tests use an attribute named [Fact] rather than one with a more traditional name like Test. xUnit.net includes support for two different major types of unit tests: facts and theories. When describing the difference between facts and theories, we like to say: 

Facts are tests which are always true. They test invariant conditions.

Theories are tests which are only true for a particular set of data.

原文地址:https://www.cnblogs.com/chucklu/p/10026196.html