コード例 #1
0
        public void Evaluate_TwoTrueExpressionsAndOneFalseExpression_ReturnsFalse()
        {
            var expression = new And(
                new Boolean(true),
                new Boolean(true),
                new Boolean(false));

            Assert.False(expression.EvaluateWithData <bool>());
        }
コード例 #2
0
        public void Evaluate_ThreeTrueExpressions_ReturnsTrue()
        {
            var expression = new And(
                new Boolean(true),
                new Boolean(true),
                new Boolean(true));

            Assert.True(expression.EvaluateWithData <bool>());
        }