C# Class NFluent.EnumerableFluentSyntaxExtension

Provides extension method on a ICheckLink for IEnumerable types.
Show file Open project: tpierrain/NFluent

Public Methods

Method Description
InThatOrder ( IEnumerable>.this chainedCheckLink ) : IEnumerable>.IExtendableCheckLink

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

Once ( IEnumerable>.this chainedCheckLink ) : IEnumerable>.IExtendableCheckLink

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

Only ( IEnumerable>.this chainedCheckLink ) : IEnumerable>.IExtendableCheckLink

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

Private Methods

Method Description
ConvertToList ( IEnumerable>.IExtendableCheckLink chainedCheckLink ) : List

Method Details

InThatOrder() public static method

Checks that the checked IEnumerable contains items in the expected order.
public static InThatOrder ( IEnumerable>.this chainedCheckLink ) : IEnumerable>.IExtendableCheckLink
chainedCheckLink IEnumerable>.this /// The chained fluent check. ///
return IEnumerable>.IExtendableCheckLink

Once() public static method

Checks that the checked IEnumerable contains the expected list of items only once.
public static Once ( IEnumerable>.this chainedCheckLink ) : IEnumerable>.IExtendableCheckLink
chainedCheckLink IEnumerable>.this /// The chained fluent check. ///
return IEnumerable>.IExtendableCheckLink

Only() public static method

Checks that the checked IEnumerable contains only the authorized items. Can only be used after a call to Contains.
public static Only ( IEnumerable>.this chainedCheckLink ) : IEnumerable>.IExtendableCheckLink
chainedCheckLink IEnumerable>.this /// The chained fluent check. ///
return IEnumerable>.IExtendableCheckLink