Finishes a step and submits its final result.

Namespace:  Gallio.Model.Contexts
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
TestResult FinishStep(
	TestOutcome outcome,
	Nullable<TimeSpan> actualDuration
)
Visual Basic (Declaration)
Function FinishStep ( _
	outcome As TestOutcome, _
	actualDuration As Nullable(Of TimeSpan) _
) As TestResult

Parameters

outcome
Type: Gallio.Model..::.TestOutcome
The final test outcome.
actualDuration
Type: System..::.Nullable<(Of <(TimeSpan>)>)
The actual duration of the step, if null the step monitor will record the duration as the total amount of time since the step monitor was started.

Return Value

The final test result.

Remarks

If any children of the step are still executing their contexts are automatically disposed. Then Finishing actions are executed. Finally, the current thread's test context is exited (unless BecomeMultiThreadAware()()() was called).

See Also