Class ProtoTestAttribute

Namespace
ProtoTest.NUnit
Assembly
ProtoTest.NUnit.dll

NUnit test attribute that manages the ProtoExecutionContext lifecycle for each test. The lifecycle is a command wrapper applied outside NUnit's setup and teardown, so it spans [SetUp] and [TearDown], and a skip condition is decided before [SetUp] runs.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class ProtoTestAttribute : TestAttribute, ISimpleTestBuilder, IApplyToTest, IImplyFixture, IWrapSetUpTearDown, ICommandWrapper
Inheritance
NUnitAttribute
TestAttribute
ProtoTestAttribute
Implements
ISimpleTestBuilder
IApplyToTest
IImplyFixture
IWrapSetUpTearDown
ICommandWrapper
Inherited Members
TestAttribute.ApplyToTest(Test)
TestAttribute.BuildFrom(IMethodInfo, Test)
TestAttribute.Description
TestAttribute.Author
TestAttribute.TestOf
TestAttribute.ExpectedResult
Extension Methods

Methods

Wrap(TestCommand)

Wraps the test so the lifecycle encloses setup, the body and teardown.

public TestCommand Wrap(TestCommand command)

Parameters

command TestCommand

Returns

TestCommand