Show / Hide Table of Contents

Class TheoryAttribute

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

Inheritance
Object
FactAttribute
TheoryAttribute
Inherited Members
FactAttribute.DisplayName
FactAttribute.Skip
FactAttribute.Timeout
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public class TheoryAttribute : FactAttribute
  • Improve this Doc
  • View Source
Back to top Generated by DocFX