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