예제 #1
0
 public static IExpectation <TSource> Between <TSource>(this IEnumerableExpectation e, int min, int max)
 {
     return(e.Cast <TSource>().Between(min, max));
 }
예제 #2
0
 public static IExpectation <TSource> None <TSource>(this IEnumerableExpectation e)
 {
     return(e.Cast <TSource>().None);
 }
예제 #3
0
 public static IExpectation <TSource> AtMost <TSource>(this IEnumerableExpectation e, int max)
 {
     return(e.Cast <TSource>().AtMost(max));
 }
예제 #4
0
 public static IExpectation <TSource> AtLeast <TSource>(this IEnumerableExpectation e, int min)
 {
     return(e.Cast <TSource>().AtLeast(min));
 }
예제 #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);
 }
예제 #6
0
 public static void Single <TValue>(this IEnumerableExpectation <object> e, Predicate <TValue> predicate)
 {
     Operators.Single.Apply(e.Cast <TValue>(), predicate);
 }
예제 #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);
 }