ToolFixtureExtensions.

GivenProcessExitsWithCode<TToolSettings, TFixtureResult>(ToolFixture<TToolSettings, TFixtureResult>, int) Method

Summary

Ensures that the tool process exits with the given exit code.
Namespace
Cake.Testing
Containing Type
ToolFixtureExtensions

Syntax

public static void GivenProcessExitsWithCode<TToolSettings, TFixtureResult>(this ToolFixture<TToolSettings, TFixtureResult> fixture, int exitCode) 
    where TToolSettings : ToolSettings, new() where TFixtureResult : ToolFixtureResult

Type Parameters

Name Description
TToolSettings The type of the tool settings.
TFixtureResult The type of the fixture result.

Parameters

Name Type Description
fixture ToolFixture<TToolSettings, TFixtureResult> The fixture.
exitCode int The exit code.

Return Value

Type Description
void