/// <summary>Verifies a collection is of a certain size.</summary> /// <param name="count">Size to check for.</param> /// <param name="collection">Collection to check.</param> /// <param name="details">Optional failure details.</param> /// <exception cref="AssertException">If the expected behavior doesn't happen.</exception> public virtual void HasCount(int count, IEnumerable collection, string details = null) { _ = new AssertGroup(Gen, Valuer, collection).HasCount(count, details); }
/// <inheritdoc cref="Called(AssertObject,object,Times)"/> public static AssertChainer <AssertGroup> Called(this AssertGroup asserter, object fake, Times total = null) { VerifyAllCalls(fake, total); return(asserter?.ToChainer()); }
/// <summary>Verifies a collection is not empty.</summary> /// <param name="collection">Collection to check.</param> /// <param name="details">Optional failure details.</param> /// <exception cref="AssertException">If the expected behavior doesn't happen.</exception> public virtual void IsNotEmpty(IEnumerable collection, string details = null) { _ = new AssertGroup(Gen, Valuer, collection).IsNotEmpty(details); }