xUnit.net
Properties | List of all members
Xunit.FactAttribute Class Reference

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...

Inheritance diagram for Xunit.FactAttribute:
Xunit.TheoryAttribute

Properties

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

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.

Property Documentation

◆ 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: