Example #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);
 }
Example #2
0
 public void NotEmpty(IEnumerable instance, string message, params object[] args)
 {
     NotThat(instance, Matchers.BeEmpty(), message, args);
 }
Example #3
0
 public void NotEmpty(IEnumerable instance)
 {
     NotThat(instance, Matchers.BeEmpty());
 }