IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.TestFixtureAttribute Class Reference

TestFixtureAttribute is used to mark a class that represents a TestFixture. More...

+ Inheritance diagram for NUnit.Framework.TestFixtureAttribute:
+ Collaboration diagram for NUnit.Framework.TestFixtureAttribute:

Public Member Functions

 TestFixtureAttribute ()
 Default constructor More...
 
 TestFixtureAttribute (params object[] arguments)
 Construct with a object[] representing a set of arguments. In .NET 2.0, the arguments may later be separated into type arguments and constructor arguments. More...
 
IEnumerable< TestSuiteBuildFrom (ITypeInfo typeInfo)
 Build a fixture from type provided. Normally called for a Type on which the attribute has been placed. More...
 
- Public Member Functions inherited from NUnit.Framework.NUnitAttribute
 NUnitAttribute ()
 Default constructor More...
 

Properties

string TestName [get, set]
 Gets or sets the name of the test. More...
 
RunState RunState [get, private set]
 Gets or sets the RunState of this test fixture. More...
 
object[] Arguments [get, private set]
 The arguments originally provided to the attribute More...
 
IPropertyBag Properties [get, private set]
 Properties pertaining to this fixture More...
 
Type[] TypeArgs [get, set]
 Get or set the type arguments. If not set explicitly, any leading arguments that are Types are taken as type arguments. More...
 
string Description [get, set]
 Descriptive text for this fixture More...
 
string Author [get, set]
 The author of this fixture More...
 
Type TestOf [get, set]
 The type that this fixture is testing More...
 
string Ignore [get, set]
 Gets or sets the ignore reason. May set RunState as a side effect. More...
 
string Reason [get, set]
 Gets or sets the reason for not running the fixture. More...
 
string IgnoreReason [get, set]
 Gets or sets the ignore reason. When set to a non-null non-empty value, the test is marked as ignored. More...
 
bool Explicit [get, set]
 Gets or sets a value indicating whether this NUnit.Framework.TestFixtureAttribute is explicit. More...
 
string Category [get, set]
 Gets and sets the category for this fixture. May be a comma-separated list of categories. More...
 
- Properties inherited from NUnit.Framework.Interfaces.ITestFixtureData
Type[] TypeArgs [get]
 Get the TypeArgs if separately set More...
 
- Properties inherited from NUnit.Framework.Interfaces.ITestData
string TestName [get]
 Gets the name to be used for the test More...
 
RunState RunState [get]
 Gets the RunState for this test case. More...
 
object[] Arguments [get]
 Gets the argument list to be provided to the test More...
 
IPropertyBag Properties [get]
 Gets the property dictionary for the test case More...
 

Private Attributes

readonly NUnitTestFixtureBuilder _builder = new NUnitTestFixtureBuilder()
 
Type _testOf
 

Detailed Description

TestFixtureAttribute is used to mark a class that represents a TestFixture.

Constructor & Destructor Documentation

NUnit.Framework.TestFixtureAttribute.TestFixtureAttribute ( )
inline

Default constructor

NUnit.Framework.TestFixtureAttribute.TestFixtureAttribute ( params object[]  arguments)
inline

Construct with a object[] representing a set of arguments. In .NET 2.0, the arguments may later be separated into type arguments and constructor arguments.

Parameters
arguments

Member Function Documentation

IEnumerable<TestSuite> NUnit.Framework.TestFixtureAttribute.BuildFrom ( ITypeInfo  typeInfo)
inline

Build a fixture from type provided. Normally called for a Type on which the attribute has been placed.

Parameters
typeInfoThe type info of the fixture to be used.
Returns
A an IEnumerable holding one TestFixture object.

Implements NUnit.Framework.Interfaces.IFixtureBuilder.

Member Data Documentation

readonly NUnitTestFixtureBuilder NUnit.Framework.TestFixtureAttribute._builder = new NUnitTestFixtureBuilder()
private
Type NUnit.Framework.TestFixtureAttribute._testOf
private

Property Documentation

string NUnit.Framework.TestFixtureAttribute.TestName
getset

Gets or sets the name of the test.

The name of the test.

RunState NUnit.Framework.TestFixtureAttribute.RunState
getprivate set

Gets or sets the RunState of this test fixture.

IPropertyBag NUnit.Framework.TestFixtureAttribute.Properties
getprivate set

Properties pertaining to this fixture

string NUnit.Framework.TestFixtureAttribute.Description
getset

Descriptive text for this fixture

string NUnit.Framework.TestFixtureAttribute.Author
getset

The author of this fixture

Type NUnit.Framework.TestFixtureAttribute.TestOf
getset

The type that this fixture is testing

string NUnit.Framework.TestFixtureAttribute.Ignore
getset

Gets or sets the ignore reason. May set RunState as a side effect.

The ignore reason.

string NUnit.Framework.TestFixtureAttribute.Reason
getset

Gets or sets the reason for not running the fixture.

The reason.

string NUnit.Framework.TestFixtureAttribute.IgnoreReason
getset

Gets or sets the ignore reason. When set to a non-null non-empty value, the test is marked as ignored.

The ignore reason.

bool NUnit.Framework.TestFixtureAttribute.Explicit
getset

Gets or sets a value indicating whether this NUnit.Framework.TestFixtureAttribute is explicit.

true if explicit; otherwise, false.

string NUnit.Framework.TestFixtureAttribute.Category
getset

Gets and sets the category for this fixture. May be a comma-separated list of categories.


The documentation for this class was generated from the following file: