Beispiel #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()));
 }
Beispiel #3
0
 public bool Visit_BooleanLiteral(BooleanLiteral lit)
 {
     Visit_Literal(lit);
     return(lit.GetValue <bool>());
 }