예제 #1
0
        public void BindingParserNodeVisitor_ParseMultiExpression_AllVisitsImplemented()
        {
            var tree = bindingParserNodeFactory.ParseMultiExpression("Aaaa<bbb,ccc>.ddd<eee>.fff + 3*4 - ggg(hhh<iii>()) :: jjj() ++ kkk.hhh");

            var testVisitor = new TestGenericVisitor();
            var result      = testVisitor.Visit(tree);

            Assert.AreEqual("Yes", result);
        }
예제 #2
0
        public void BindingParserNodeVisitor_ParseImportDirective_AllVisitsImplemented()
        {
            var tree = bindingParserNodeFactory.ParseImportDirective("alias = Aaaa<bbb,ccc>.ddd<eee>.fff");

            var testVisitor = new TestGenericVisitor();
            var result      = testVisitor.Visit(tree);

            Assert.AreEqual("Yes", result);
        }