MoreEnumerable.AssertCount Method

Overload List

AssertCount<TSource>(IEnumerable<TSource>, Int32) Asserts that a source sequence contains a given count of elements.
AssertCount<TSource>(IEnumerable<TSource>, Int32, Func<Int32, Int32, Exception>) Asserts that a source sequence contains a given count of elements. A parameter specifies the exception to be thrown.

See Also