AjScript.Tests.Interpreter.ParserTests.ParseFalseAsConstant C# (CSharp) Method

ParseFalseAsConstant() private method

private ParseFalseAsConstant ( ) : void
return void
        public void ParseFalseAsConstant()
        {
            IExpression expression = this.ParseExpression("false");

            Assert.IsNotNull(expression);
            Assert.IsInstanceOfType(expression, typeof(ConstantExpression));

            ConstantExpression consexpr = (ConstantExpression)expression;
            Assert.IsInstanceOfType(consexpr.Value, typeof(bool));
            Assert.IsFalse((bool)consexpr.Value);
        }
ParserTests