Exemple #1
0
 internal static EnumerableAssertion ContainsMoreThan(this EnumerableAssertion source, int nElements)
 {
     source.Extend(x =>
     {
         var count = GetCount(x);
         return(AssertResult.New(count > nElements, Resources.ContainsMoreThan, nElements));
     });
     return(source);
 }
Exemple #2
0
 internal static EnumerableAssertion IsEmpty(this EnumerableAssertion source)
 {
     source.Extend(x =>
     {
         var c = GetCount(x);
         return(AssertResult.New(c == 0, Resources.IsEmpty));
     });
     return(source);
 }