public void GreaterThan_CustomIComparableImplementation_InvalidType_ArgumentTypeMismatch()
        {
            // Arrange
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            Action action = () => modifier.IsConditionMet("foo", new CustomIComparableImplementation(15));

            // Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
        public void GreaterThan_Bool_InvalidType_ArgumentTypeMismatch()
        {
            // Arrange
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            Action action = () => modifier.IsConditionMet("foo", false);

            // Assert
            Assert.ThrowsException<ArgumentException>(action);
        }
        public void GreaterThan_Bool_InvalidType_ArgumentTypeMismatch()
        {
            // Arrange
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            Action action = () => modifier.IsConditionMet("foo", false);

            // Assert
            Assert.ThrowsException <ArgumentException>(action);
        }
        public void GreaterThan_InvalidCast()
        {
            // Arrange
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            Action action = () => modifier.IsConditionMet(null, null);

            // Assert
            Assert.ThrowsException <InvalidCastException>(action);
        }
        public void GreaterThan_Int32_True()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(12, 15);

            // Assert
            Assert.IsTrue(result);
        }
        public void GreaterThan_CustomIComparableImplementation_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(new CustomIComparableImplementation(15), new CustomIComparableImplementation(15));

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_Bool_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(false, false);

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_String_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet("bar", "bar");

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_DateTime_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(DateTime.MinValue, DateTime.MinValue);

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_Bool_True()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(false, true);

            // Assert
            Assert.IsTrue(result);
        }
        public void GreaterThan_Double_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(15.0, 15.0);

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_AllowNullValue_ConditionNotMet()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();
            modifier.TreatNullAsConditionNotMet = true;

            // Act
            result = modifier.IsConditionMet(null, null);

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_AllowNullValue_ConditionNotMet()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            modifier.TreatNullAsConditionNotMet = true;

            // Act
            result = modifier.IsConditionMet(null, null);

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_CustomIComparableImplementation_InvalidType_ArgumentTypeMismatch()
        {
            // Arrange
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            Action action = () => modifier.IsConditionMet("foo", new CustomIComparableImplementation(15));

            // Assert
            Assert.ThrowsException<ArgumentException>(action);
        }
        public void GreaterThan_Double_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(15.0, 15.0);

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_Int32_True()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(12, 15);

            // Assert
            Assert.IsTrue(result);
        }
        public void GreaterThan_DateTime_True()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(DateTime.MinValue, DateTime.MaxValue);

            // Assert
            Assert.IsTrue(result);
        }
        public void GreaterThan_CustomIComparableImplementation_False()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet(new CustomIComparableImplementation(15), new CustomIComparableImplementation(15));

            // Assert
            Assert.IsFalse(result);
        }
        public void GreaterThan_InvalidCast()
        {
            // Arrange
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            Action action = () => modifier.IsConditionMet(null, null);

            // Assert
            Assert.ThrowsException<InvalidCastException>(action);
        }
        public void GreaterThan_String_True()
        {
            // Arrange
            bool result;
            IConditionModifier modifier = new GreaterThanModifier();

            // Act
            result = modifier.IsConditionMet("bar", "foo");

            // Assert
            Assert.IsTrue(result);
        }