Esempio n. 1
0
 public static void Empty <T>(this IExpectation <T> e, string message, params object[] args)
 {
     // We have to enforce the constraint at runtime because Expectation<object>
     // is possible and it is meant to represent type erasure caused
     // with EnumerableExpectation.All() or Any()
     e.As <IEnumerable>().Like(Matchers.BeEmpty(), message, (object[])args);
 }
Esempio n. 2
0
 public void NotEmpty(IEnumerable instance, string message, params object[] args)
 {
     NotThat(instance, Matchers.BeEmpty(), message, args);
 }
Esempio n. 3
0
 public void NotEmpty(IEnumerable instance)
 {
     NotThat(instance, Matchers.BeEmpty());
 }