public void Is_ConditionNotFulfilledWithMessage_DoesThrowException()
        {
            // Arrange
            bool exceptionThrown = false;
            PreconditionViolatedException exception = null;

            // Act
            try
            {
                Precondition.Is(false, "Test message");
            }
            catch (Exception ex)
            {
                exceptionThrown = true;
                exception       = ex as PreconditionViolatedException;
            }

            // Assert
            Check.That(exceptionThrown).IsTrue();
            Check.That(exception).IsInstanceOf <PreconditionViolatedException>();
            Check.That(exception.Message).Equals("Test message");
        }
 public void Is_ConditionNotFulfilled_DoesThrowException()
 {
     // Arrange & Act
     Precondition.Is(false);
 }
 public void Is_ConditionFulfilled_DoesNotThrowException()
 {
     // Arrange & Act
     Precondition.Is(true);
 }