Arc.Unit.Tests.Domain.Dsl.DslTests.Should_not_execute_recovery_action_when_exception_does_not_occur C# (CSharp) Метод

Should_not_execute_recovery_action_when_exception_does_not_occur() приватный Метод

private Should_not_execute_recovery_action_when_exception_does_not_occur ( ) : void
Результат void
        public void Should_not_execute_recovery_action_when_exception_does_not_occur()
        {
            var actionWasCalled = false;
            var recoveryWasCalled = false;

            Should.Do(() => actionWasCalled = true).On<Exception>(x => recoveryWasCalled = true);

            Assert.That(actionWasCalled, Is.True);
            Assert.That(recoveryWasCalled, Is.False);
        }