xUnit.net
List of all members
Xunit.TheoryAttribute Class Reference

Marks a test method as being a data theory. Data theories are tests which are fed various bits of data from a data source, mapping to parameters on the test method. If the data source contains multiple rows, then the test method is executed multiple times (once with each data row). Data is provided by attributes which derive from DataAttribute (notably, InlineDataAttribute and MemberDataAttribute). More...

Inheritance diagram for Xunit.TheoryAttribute:
Xunit.FactAttribute

Additional Inherited Members

- Properties inherited from Xunit.FactAttribute
virtual string DisplayName [get, set]
 Gets the name of the test to be used when the test is skipped. Defaults to null, which will cause the fully qualified test name to be used. More...
 
virtual string Skip [get, set]
 Marks the test so that it will not be run, and gets or sets the skip reason More...
 
virtual int Timeout [get, set]
 Marks the test as having a timeout, and gets or sets the timeout (in milliseconds). WARNING: Using this with parallelization turned on will result in undefined behavior. Timeout is only supported when parallelization is disabled, either globally or with a parallelization-disabled test collection. More...
 

Detailed Description

Marks a test method as being a data theory. Data theories are tests which are fed various bits of data from a data source, mapping to parameters on the test method. If the data source contains multiple rows, then the test method is executed multiple times (once with each data row). Data is provided by attributes which derive from DataAttribute (notably, InlineDataAttribute and MemberDataAttribute).


The documentation for this class was generated from the following file: