예제 #1
0
        public void ConditionsHoldsShouldReturnTrueWhenTheConditionIsTrue()
        {
            // Arrange
            var condition = new SimpleCondition(true);

            // Act
            var conditionHolds = condition.Holds(null);

            // Assert
            Assert.True(conditionHolds);
        }
예제 #2
0
        public void ConditionsHoldsShouldReturnFalseWhenTheConditionIsFalse()
        {
            // Arrange
            var condition = new SimpleCondition(false);

            // Act
            var conditionHolds = condition.Holds(null);

            // Assert
            Assert.False(conditionHolds);
        }