xUnit Fact and theory - Hovermind
hovermind.com › xunit › fact-and-theoryxUnit Theory on the other hand depends on set of parameters and its data, our test will pass for some set of data and not the others. We have a theory which postulate that with this set of data, this will happen. Fact Attribute [Fact] attribute is used by the xUnit.net test runner to identify a ‘normal’ unit test - a test method that takes no method arguments.
c# - Difference between Fact and Theory? - xUnit.net - Stack ...
stackoverflow.com › questions › 22373258Jul 13, 2016 · The [Fact] attribute is used by the xUnit.net test runner to identify a 'normal' unit test: a test method that takes no method arguments. The [Theory] attribute, on the other, expects one or more DataAttribute instances to supply the values for a Parameterized Test's method arguments. xUnit.net itself supplies various attributes that derive from DataAttribute: [InlineData], [ClassData], [PropertyData].