Ejemplo n.º 1
0
            public void Given_call_count_above_0_when_creating_should_not_throw(int callCount)
            {
                Action act = () => IsSent.AtLeast(callCount);

                // Assert
                act.Should().NotThrow <ArgumentOutOfRangeException>();
            }
Ejemplo n.º 2
0
            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);
            }
Ejemplo n.º 3
0
            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));
            }