Class ProtoKeyValueModelAssertions<TModel>

Namespace
ProtoTest.Sheets
Assembly
ProtoTest.Sheets.dll

The assertions of one key-value model, reached through Should; each member returns the model, so assertions chain.

public sealed class ProtoKeyValueModelAssertions<TModel> where TModel : notnull

Type Parameters

TModel
Inheritance
ProtoKeyValueModelAssertions<TModel>
Inherited Members
Extension Methods

Methods

MatchModel()

Checks every declared label against the sheet: the label must exist exactly once, the value must convert to the property's type, a non-nullable property must not be empty, and Min/Max/Pattern/OneOf must hold. All violations are reported in one failure. Returns the model.

public ProtoKeyValueModel<TModel> MatchModel()

Returns

ProtoKeyValueModel<TModel>