Documentation
Table of Contents

Method RunAsync

Namespace
IntentSharp.Testing
Assembly
IntentSharp.dll

RunAsync(ITarget, TargetContractScript, CancellationToken)

Runs every step of the contract against target with script.

public static Task RunAsync(ITarget target, TargetContractScript script, CancellationToken cancellationToken = default)

Parameters

target ITarget

The target, holding the data the script reads.

script TargetContractScript

The read to run and what it must give.

cancellationToken CancellationToken

Cancels the run.

Returns

Task

Exceptions

ArgumentNullException

target or script is null.

TargetContractException

A step failed; Step names it.

OperationCanceledException

cancellationToken was cancelled.