Class LuceneTestCase.TestFixtureAttribute
Marks the class as a TestFixture.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.TestFramework.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class TestFixtureAttribute : NUnitAttribute, IFixtureBuilder2, IFixtureBuilder, ITestFixtureData, ITestData
Constructors
| Improve this Doc View SourceTestFixtureAttribute()
Default constructor
Declaration
public TestFixtureAttribute()
TestFixtureAttribute(Object[])
Construct with a object[] representing a set of arguments. The arguments may later be separated into type arguments and constructor arguments.
Declaration
public TestFixtureAttribute(params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | arguments |
Properties
| Improve this Doc View SourceArguments
The arguments originally provided to the attribute
Declaration
public object[] Arguments { get; }
Property Value
Type | Description |
---|---|
System.Object[] |
Author
The author of this fixture
Declaration
public string Author { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Category
Gets and sets the category for this fixture. May be a comma-separated list of categories.
Declaration
public string Category { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Description
Descriptive text for this fixture
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Explicit
Gets or sets a value indicating whether this NUnit.Framework.TestFixtureAttribute is explicit.
Declaration
public bool Explicit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Ignore
Gets or sets the ignore reason. May set RunState as a side effect.
Declaration
public string Ignore { get; set; }
Property Value
Type | Description |
---|---|
System.String | The ignore reason. |
IgnoreReason
Gets or sets the ignore reason. When set to a non-null non-empty value, the test is marked as ignored.
Declaration
public string IgnoreReason { get; set; }
Property Value
Type | Description |
---|---|
System.String | The ignore reason. |
Properties
Properties pertaining to this fixture
Declaration
public IPropertyBag Properties { get; }
Property Value
Type | Description |
---|---|
NUnit.Framework.Interfaces.IPropertyBag |
Reason
Gets or sets the reason for not running the fixture.
Declaration
public string Reason { get; set; }
Property Value
Type | Description |
---|---|
System.String | The reason. |
RunState
Gets or sets the RunState of this test fixture.
Declaration
public RunState RunState { get; }
Property Value
Type | Description |
---|---|
NUnit.Framework.Interfaces.RunState |
TestName
Gets or sets the name of the test.
Declaration
public string TestName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the test. |
TestOf
The type that this fixture is testing
Declaration
public Type TestOf { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
TypeArgs
Get or set the type arguments. If not set explicitly, any leading arguments that are Types are taken as type arguments.
Declaration
public Type[] TypeArgs { get; set; }
Property Value
Type | Description |
---|---|
System.Type[] |
Methods
| Improve this Doc View SourceBuildFrom(ITypeInfo)
Builds a single test fixture from the specified type.
Declaration
public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
NUnit.Framework.Interfaces.ITypeInfo | typeInfo |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<NUnit.Framework.Internal.TestSuite> |
BuildFrom(ITypeInfo, IPreFilter)
Builds a single test fixture from the specified type.
Declaration
public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo, IPreFilter filter)
Parameters
Type | Name | Description |
---|---|---|
NUnit.Framework.Interfaces.ITypeInfo | typeInfo | The type info of the fixture to be used. |
NUnit.Framework.Interfaces.IPreFilter | filter | Filter used to select methods as tests. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<NUnit.Framework.Internal.TestSuite> |