Class TestOfAttribute
Indicates the method or class the assembly, test fixture or test method is testing.
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class TestOfAttribute : PropertyAttribute, IApplyToTest
Constructors
View SourceTestOfAttribute(string)
Initializes a new instance of the TestOfAttribute class.
Declaration
public TestOfAttribute(string typeName)
Parameters
Type | Name | Description |
---|---|---|
string | typeName | The type that is being tested. |
TestOfAttribute(Type)
Initializes a new instance of the TestOfAttribute class.
Declaration
public TestOfAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type that is being tested. |