public void Given_call_count_above_0_when_creating_should_not_throw(int callCount) { Action act = () => IsSent.AtLeast(callCount); // Assert act.Should().NotThrow <ArgumentOutOfRangeException>(); }
public void When_verifying_at_or_above_call_count_should_be_true(int callCount, int verifyCount, bool expected) { IsSent atLeast = IsSent.AtLeast(callCount); // Assert atLeast.Verify(verifyCount).Should().Be(expected); }
public void Given_call_count_below_1_when_creating_should_throw(int callCount) { Action act = () => IsSent.AtLeast(callCount); // Assert act.Should().Throw <ArgumentOutOfRangeException>().WithParamName(nameof(callCount)); }