public void Should_not_execute_action_when_condition_is_false() { var actionWasCalled = false; Should.Do(() => actionWasCalled = true).When(false); Assert.That(actionWasCalled, Is.False); }