public void Given_call_count_at_or_above_0_when_creating_should_not_throw(int callCount) { Action act = () => IsSent.AtMost(callCount); // Assert act.Should().NotThrow <ArgumentOutOfRangeException>(); }
public void When_verifying_at_or_below_call_count_should_be_true(int callCount, int verifyCount, bool expected) { IsSent atMost = IsSent.AtMost(callCount); // Assert atMost.Verify(verifyCount).Should().Be(expected); }
public void Given_call_count_below_0_when_creating_should_throw(int callCount) { Action act = () => IsSent.AtMost(callCount); // Assert act.Should().Throw <ArgumentOutOfRangeException>().WithParamName(nameof(callCount)); }