Exemplo n.º 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);
 }
Exemplo n.º 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);
 }