Example #1
0
 public void Contains <TSource>(TSource expected, IEnumerable <TSource> actual, string message, params object[] args)
 {
     That(actual, Matchers.Contain <TSource>(expected), message, (object[])args);
 }
Example #2
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);
 }
Example #3
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);
 }
Example #4
0
 public void DoesNotContain <TSource>(TSource expected, IEnumerable <TSource> actual, IEqualityComparer <TSource> comparer, string message, params object[] args)
 {
     NotThat(actual, Matchers.Contain(expected, comparer), message, (object[])args);
 }