예제 #1
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, Predicate <TValue> predicate, string message, params object[] args)
 {
     e.Like(CreateMatcher(predicate), message, (object[])args);
 }
예제 #2
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, params TValue[] expected)
 {
     e.Like(CreateMatcher(expected));
 }
예제 #3
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, string message, params object[] args)
 {
     e.Like(CreateMatcher(expected), message, (object[])args);
 }
예제 #4
0
 public static void Element <TSource>(this IEnumerableExpectation <TSource> e, TSource item, Comparison <TSource> comparison, string message, params object[] args)
 {
     e.Like(Matchers.Contain(item, comparison), message, (object[])args);
 }
예제 #5
0
 public static void KeyWithValue <TKey, TValue>(this IEnumerableExpectation <KeyValuePair <TKey, TValue> > e, TKey key, TValue value, string message, params object[] args)
 {
     e.Like(Matchers.HaveKeyWithValue <TKey, TValue>(key, value), message, (object[])args);
 }
예제 #6
0
 public static void Count <TSource>(this IEnumerableExpectation <TSource> e, int count, Predicate <TSource> predicate, string message, params object[] args)
 {
     e.Like(Matchers.HaveCount(count, predicate), message, (object[])args);
 }