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
targetITargetThe target, holding the data the script reads.
scriptTargetContractScriptThe read to run and what it must give.
cancellationTokenCancellationTokenCancels the run.
Returns
- Task
Exceptions
- ArgumentNullException
targetorscriptis null.- TargetContractException
A step failed; Step names it.
- OperationCanceledException
cancellationTokenwas cancelled.