NFluent by Thomas PIERRAIN, Cyrille DUPUYDAUBY, Rui CARVALHO, Marc-Antoine LATOUR

<PackageReference Include="NFluent" Version="1.2.0" />

.NET API 112,640 bytes

 EnumerableFluentSyntaxExtension

public static class EnumerableFluentSyntaxExtension
Provides extension method on a ICheckLink for IEnumerable types.

Checks that the checked IEnumerable contains items in the expected order.

public static IExtendableCheckLink<IEnumerable> Once(this IExtendableCheckLink<IEnumerable> chainedCheckLink)

Checks that the checked IEnumerable contains the expected list of items only once.

public static IExtendableCheckLink<IEnumerable> Only(this IExtendableCheckLink<IEnumerable> chainedCheckLink)

Checks that the checked IEnumerable contains only the authorized items. Can only be used after a call to Contains.