Method AddSample
- Namespace
- IntentSharp.Mapping
- Assembly
- IntentSharp.dll
AddSample<TIn, TOut>(TIn, TOut)
Adds a golden sample: an input and the output the mapping must produce for it.
public MappingOptions AddSample<TIn, TOut>(TIn input, TOut expected)
Parameters
inputTInThe input.
expectedTOutThe output the mapping must produce for
input.
Returns
- MappingOptions
These options, for chaining.
Type Parameters
TInThe input type.
TOutThe output type.
Exceptions
- ArgumentNullException
inputorexpectedis null.