Attribute that is applied to a method to indicate that it is a fact that should be run by the test runner. It can also be extended to support a customized definition of a test method.
More...
|
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...
|
|
Attribute that is applied to a method to indicate that it is a fact that should be run by the test runner. It can also be extended to support a customized definition of a test method.
◆ DisplayName
virtual string Xunit.FactAttribute.DisplayName |
|
getset |
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.
◆ Skip
virtual string Xunit.FactAttribute.Skip |
|
getset |
Marks the test so that it will not be run, and gets or sets the skip reason
◆ Timeout
virtual int Xunit.FactAttribute.Timeout |
|
getset |
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.
The documentation for this class was generated from the following file:
- xunit/src/xunit.core/FactAttribute.cs