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

ParseNullAsConstant() private method

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

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

            ConstantExpression consexpr = (ConstantExpression)expression;
            Assert.IsNull(consexpr.Value);
        }
ParserTests