Namespace IntentSharp.Testing
Classes
- ScriptedProvider
An in-process provider for tests. Returns canned replies in order, or computes a reply from the request. Records every request it receives so tests can check what was sent.
- TargetContractException
A target failed a step of RunAsync(ITarget, TargetContractScript, CancellationToken). Step names the step, and the message says what the kit expected and what the target did, so a test of any framework shows why it failed.
- TargetContractKit
The adapter contract kit: runs the checks every ITarget must pass against a target and a script of one read, for the target's own tests. It needs no test framework: a failed check throws a TargetContractException naming the step, and a target that passes returns normally.
- TargetContractScript
What RunAsync(ITarget, TargetContractScript, CancellationToken) runs against a target: the request, the command the scripted model plans for it, the entities the target's inspection must name and the records the execution must return. The command must be one the target runs as a read of data the target already holds.