Пример #1
0
            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>();
            }
Пример #2
0
            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);
            }
Пример #3
0
            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));
            }