Exemplo n.º 1
0
 public void FalseTrueTest()
 {
     MockExpression leftExpression = new MockExpression(false);
     MockExpression rightExpression = new MockExpression(true);
     OrOperator expression = new OrOperator(leftExpression, rightExpression);
     Assert.IsTrue(expression.Evaluate(principal));
 }
        public void TrueTest()
        {
            MockExpression expression    = new MockExpression(false);
            NotOperator    notExpression = new NotOperator(expression);

            Assert.IsTrue(notExpression.Evaluate(principal));
        }
 public void FalseFalseTest()
 {
     MockExpression leftExpression = new MockExpression(false);
     MockExpression rightExpression = new MockExpression(false);
     AndOperator expression = new AndOperator(leftExpression, rightExpression);
     Assert.IsFalse(expression.Evaluate(principal));
 }
Exemplo n.º 4
0
        public void FalseTrueTest()
        {
            MockExpression leftExpression  = new MockExpression(false);
            MockExpression rightExpression = new MockExpression(true);
            OrOperator     expression      = new OrOperator(leftExpression, rightExpression);

            Assert.IsTrue(expression.Evaluate(principal));
        }
        public void FalseFalseTest()
        {
            MockExpression leftExpression  = new MockExpression(false);
            MockExpression rightExpression = new MockExpression(false);
            AndOperator    expression      = new AndOperator(leftExpression, rightExpression);

            Assert.IsFalse(expression.Evaluate(principal));
        }
Exemplo n.º 6
0
 public void TrueTest()
 {
     MockExpression expression = new MockExpression(false);
     NotOperator notExpression = new NotOperator(expression);
     Assert.IsTrue(notExpression.Evaluate(principal));
 }