Exemplo n.º 1
0
        public void TestBooleanLiteralGetValue()
        {
            BooleanLiteral booleanLiteral = new BooleanLiteral()
            {
                Value = true
            };

            Assert.AreEqual(true, booleanLiteral.GetValue());

            booleanLiteral.Value = false;

            Assert.AreEqual(false, booleanLiteral.GetValue());
        }
 public override Value Visit(BooleanLiteral literal)
 {
     return(new BooleanValue(literal.GetValue()));
 }
Exemplo n.º 3
0
 public bool Visit_BooleanLiteral(BooleanLiteral lit)
 {
     Visit_Literal(lit);
     return(lit.GetValue <bool>());
 }