Creates a new process task but does not start it.

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

Syntax

C#
public static ProcessTask CreateProcessTask(
	string executablePath,
	string arguments,
	string workingDirectory
)
Visual Basic (Declaration)
Public Shared Function CreateProcessTask ( _
	executablePath As String, _
	arguments As String, _
	workingDirectory As String _
) As ProcessTask

Parameters

executablePath
Type: System..::.String
The path of the executable executable.
arguments
Type: System..::.String
The arguments for the executable.
workingDirectory
Type: System..::.String
The working directory.

Return Value

The new thread task.

Remarks

The output of the process will be logged and included as part of the test results. It may also be examined using the ConsoleOutput and ConsoleError properties while the process executes and after it terminates.

There is no need to call WatchTask(Task) on the returned task.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if executablePath, arguments or workingDirectory is null.

See Also