Applies semantic actions to a test to estalish its runtime behavior.
Namespace:
Gallio.Framework.PatternAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
protected virtual void SetTestSemantics( ITestBuilder testBuilder, ITypeInfo type ) |
| Visual Basic (Declaration) |
|---|
Protected Overridable Sub SetTestSemantics ( _ testBuilder As ITestBuilder, _ type As ITypeInfo _ ) |
Parameters
- testBuilder
- Type: Gallio.Framework.Pattern..::.ITestBuilder
The test builder.
- type
- Type: Gallio.Common.Reflection..::.ITypeInfo
The test type.
Remarks
This method is called after InitializeTest(IPatternScope, ITypeInfo).
The default behavior for a TestTypePatternAttribute is to configure the test actions as follows:
- BeforeTestInstanceChain: Set the fixture instance name and FixtureType.
- InitializeTestInstanceChain: Create the fixture instance and set the FixtureInstance property accordingly.
- DisposeTestInstanceChain: If the fixture type implements IDisposable, disposes the fixture instance.
- DecorateChildTestChain: Decorates the child's BeforeTestInstanceChain to set its FixtureInstance and FixtureType properties to those of the fixture. The child test may override these values later on but this is a reasonable default setting for test methods within a fixture.
You can override this method to change the semantics as required.
