예제 #1
0
 public static void Key <TKey>(this IEnumerableExpectation e, TKey key, string message, params object[] args)
 {
     e.As <IEnumerable>().Like(Matchers.HaveKey(key), message, (object[])args);
 }
예제 #2
0
 public static IExpectation <TSource> AtLeast <TSource>(this IEnumerableExpectation e, int min)
 {
     return(e.Cast <TSource>().AtLeast(min));
 }
예제 #3
0
 public static IExpectation <TSource> Between <TSource>(this IEnumerableExpectation e, int min, int max)
 {
     return(e.Cast <TSource>().Between(min, max));
 }
예제 #4
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e)
 {
     Apply(e, null, (object[])null);
 }
예제 #5
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, Predicate <TValue> predicate)
 {
     Apply(e, predicate, null, (object[])null);
 }
예제 #6
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, Comparison <TValue> comparison)
 {
     Apply <TValue>(e, expected, comparison, message: null);
 }
예제 #7
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, Comparison <TValue> comparison, string message, params object[] args)
 {
     e.Like(CreateMatcher(expected, comparison), message, (object[])args);
 }
예제 #8
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);
 }
 public static void Substring(this IEnumerableExpectation e, string substring)
 {
     Substring(e, substring, (string)null);
 }
예제 #10
0
 public static void Element <TSource>(this IEnumerableExpectation <TSource> e, TSource item, IEqualityComparer <TSource> comparer)
 {
     Element <TSource>(e, item, comparer, (string)null);
 }
예제 #11
0
 public static void Element <TSource>(this IEnumerableExpectation <TSource> e, TSource item, Comparison <TSource> comparison)
 {
     Element <TSource>(e, item, comparison, (string)null);
 }
예제 #12
0
 public static void Element <TSource>(this IEnumerableExpectation <TSource> e, TSource item)
 {
     Element <TSource>(e, item, (string)null);
 }
예제 #13
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);
 }
예제 #14
0
 public static void Element(this IEnumerableExpectation e, object item)
 {
     Element(e, item, (string)null);
 }
예제 #15
0
 public static void Length <TSource>(this IEnumerableExpectation <TSource> e, int length, string message, params object[] args)
 {
     e.Self.Like(Matchers.HaveLength(length), message, (object[])args);
 }
예제 #16
0
 public static void Substring(this IEnumerableExpectation e, string substring, StringComparison comparison)
 {
     Substring(e, substring, comparison, null);
 }
예제 #17
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, IEqualityComparer <TValue> comparer)
 {
     Apply <TValue>(e, expected, comparer, message: null);
 }
예제 #18
0
 public static void Substring(this IEnumerableExpectation e, string substring, StringComparison comparison, string message, params object[] args)
 {
     e.As <string>().Like(Matchers.ContainSubstring(substring, comparison), message, (object[])args);
 }
예제 #19
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected)
 {
     Apply <TValue>(e, expected, message: null);
 }
예제 #20
0
 public static void OverlapWith <TValue>(this IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, Comparison <TValue> comparison)
 {
     Operators.Overlap.Apply(e, expected, comparison);
 }
예제 #21
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, params TValue[] expected)
 {
     e.Like(CreateMatcher(expected));
 }
예제 #22
0
 public static void OverlapWith <TValue>(this IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, IEqualityComparer <TValue> comparer)
 {
     Operators.Overlap.Apply(e, expected, comparer);
 }
예제 #23
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, string message, params object[] args)
 {
     e.As <IEnumerable>().Like(CreateMatcher(), message, (object[])args);
 }
예제 #24
0
 public static void OverlapWith <TValue>(this IEnumerableExpectation <TValue> e, IEnumerable <TValue> expected, IEqualityComparer <TValue> comparer, string message, params object[] args)
 {
     Operators.Overlap.Apply(e, expected, comparer, message, args);
 }
예제 #25
0
 public void Apply <TValue>(IEnumerableExpectation <TValue> e, Predicate <TValue> predicate, string message, params object[] args)
 {
     e.Like(CreateMatcher(predicate), message, (object[])args);
 }
예제 #26
0
 public static void OverlapWith <TValue>(this IEnumerableExpectation <TValue> e, params TValue[] expected)
 {
     Operators.Overlap.Apply(e, expected);
 }
예제 #27
0
 public static IExpectation <TSource> AtMost <TSource>(this IEnumerableExpectation e, int max)
 {
     return(e.Cast <TSource>().AtMost(max));
 }
예제 #28
0
 public static void Length <TSource>(this IEnumerableExpectation <TSource> e, int length)
 {
     Length <TSource>(e, length, null);
 }
예제 #29
0
 public static IExpectation <TSource> None <TSource>(this IEnumerableExpectation e)
 {
     return(e.Cast <TSource>().None);
 }
예제 #30
0
 public static void Key <TKey>(this IEnumerableExpectation e, TKey key)
 {
     Key(e, key, null);
 }