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