Class CulturedTheoryAttribute
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
Attribute that is applied to a method to indicate that it is a data theory that should be run by the default test runner, using one or more cultures.
[XunitTestCaseDiscoverer(typeof(CulturedTheoryAttributeDiscoverer))]
public class CulturedTheoryAttribute : TheoryAttribute, ITheoryAttribute, IFactAttribute
- Inheritance
-
CulturedTheoryAttribute
- Implements
- Inherited Members
Remarks
Data theories are tests which are fed 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 implement IDataAttribute (most commonly, InlineDataAttribute and MemberDataAttribute).
Constructors
- CulturedTheoryAttribute(string[], string?, int)
Attribute that is applied to a method to indicate that it is a data theory that should be run by the default test runner, using one or more cultures.
Properties
- Cultures
Gets the cultures that the test will be run under.