예제 #1
0
            public void SoftlyAssert_ManyFailures()
            {
                Action sa = () => SafeActions.Safely(ManyFailureActions(Tested));

                sa.Should().Throw <SafeActionsException>().WithMessage(Message_ManyFailures);
                Tested.Value.Should().BeTrue();
            }
예제 #2
0
            public void SoftlyAssert_Pass()
            {
                Action sa = () => SafeActions.Safely(PassingActions(Tested));

                sa.Should().NotThrow();
                Tested.Value.Should().BeTrue();
            }