AjScript.Tests.Interpreter.ParserTests.ParseAndExpression C# (CSharp) Méthode

ParseAndExpression() private méthode

private ParseAndExpression ( ) : void
Résultat void
        public void ParseAndExpression()
        {
            IExpression expression = this.ParseExpression("a===1 && b===1");

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

            AndExpression andexpr = (AndExpression)expression;

            Assert.IsInstanceOfType(andexpr.LeftExpression, typeof(CompareExpression));
            Assert.IsInstanceOfType(andexpr.RightExpression, typeof(CompareExpression));
        }
ParserTests