Table of Contents

Class TestOfAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Indicates which class the test or test fixture is testing

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class TestOfAttribute : PropertyAttribute, IApplyToTest
Inheritance
TestOfAttribute
Implements
Inherited Members

Constructors

TestOfAttribute(string)

Initializes a new instance of the TestOfAttribute class.

public TestOfAttribute(string typeName)

Parameters

typeName string

The type that is being tested.

TestOfAttribute(Type)

Initializes a new instance of the TestOfAttribute class.

public TestOfAttribute(Type type)

Parameters

type Type

The type that is being tested.