Documentation
Table of Contents

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

input TIn

The input.

expected TOut

The output the mapping must produce for input.

Returns

MappingOptions

These options, for chaining.

Type Parameters

TIn

The input type.

TOut

The output type.

Exceptions

ArgumentNullException

input or expected is null.