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, IMethodInfo method ) |
| Visual Basic (Declaration) |
|---|
Protected Overridable Sub SetTestSemantics ( _ testBuilder As ITestBuilder, _ method As IMethodInfo _ ) |
Parameters
- testBuilder
- Type: Gallio.Framework.Pattern..::.ITestBuilder
The test builder.
- method
- Type: Gallio.Common.Reflection..::.IMethodInfo
The test method.
Remarks
This method is called after InitializeTest(IPatternScope, IMethodInfo).
The default behavior for a TestMethodPatternAttribute is to configure the test actions as follows:
- BeforeTestInstanceChain: Set the test step name, TestMethod and TestArguments based on any values bound to the test method's generic parameter and method parameter slots.
- ExecuteTestInstanceChain: Invoke the method.
You can override this method to change the semantics as required.
