public static IExpectation <TSource> Between <TSource>(this IEnumerableExpectation e, int min, int max)
 {
     return(e.Cast <TSource>().Between(min, max));
 }
 public static IExpectation <TSource> None <TSource>(this IEnumerableExpectation e)
 {
     return(e.Cast <TSource>().None);
 }
 public static IExpectation <TSource> AtMost <TSource>(this IEnumerableExpectation e, int max)
 {
     return(e.Cast <TSource>().AtMost(max));
 }
 public static IExpectation <TSource> AtLeast <TSource>(this IEnumerableExpectation e, int min)
 {
     return(e.Cast <TSource>().AtLeast(min));
 }
Beispiel #5
0
 public static void Element(this IEnumerableExpectation e, object item, string message, params object[] args)
 {
     e.Cast <object>().Like(Matchers.Contain(item), message, (object[])args);
 }
Beispiel #6
0
 public static void Single <TValue>(this IEnumerableExpectation <object> e, Predicate <TValue> predicate)
 {
     Operators.Single.Apply(e.Cast <TValue>(), predicate);
 }
Beispiel #7
0
 public static void Single <TValue>(this IEnumerableExpectation <object> e, Predicate <TValue> predicate, string message, params object[] args)
 {
     Operators.Single.Apply(e.Cast <TValue>(), predicate, message, args);
 }