편집

다음을 통해 공유


TestFixtureAttribute Class

Definition

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class TestFixtureAttribute : NUnit.Framework.NUnitAttribute, NUnit.Framework.Internal.IApplyToTest
type TestFixtureAttribute = class
    inherit NUnitAttribute
    interface IApplyToTest
Inheritance
TestFixtureAttribute
Attributes
Implements

Examples

[TestFixture] public class ExampleClass {}

Constructors

TestFixtureAttribute()

Default constructor

TestFixtureAttribute(Object[])

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.

Properties

Arguments

The arguments originally provided to the attribute

Categories
Category
Description

Descriptive text for this fixture

Ignore

Gets or sets a value indicating whether this TestFixtureAttribute should be ignored.

IgnoreReason

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

TypeArgs

Get or set the type arguments. If not set explicitly, any leading arguments that are Types are taken as type arguments.

Methods

ApplyToTest(Test)

Applies to