Class ProtoTestAttribute
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
-
NUnitAttributeTestAttributeProtoTestAttribute
- Implements
-
ISimpleTestBuilderIApplyToTestIImplyFixtureIWrapSetUpTearDownICommandWrapper
- Inherited Members
-
TestAttribute.ApplyToTest(Test)TestAttribute.BuildFrom(IMethodInfo, Test)TestAttribute.DescriptionTestAttribute.AuthorTestAttribute.TestOfTestAttribute.ExpectedResult
- Extension Methods
Methods
Wrap(TestCommand)
Wraps the test so the lifecycle encloses setup, the body and teardown.
public TestCommand Wrap(TestCommand command)
Parameters
commandTestCommand
Returns
- TestCommand