public void ParseSimpleStylesheetWithOnePage_WillSucceed() { var stylesheetTask = new StylesheetTask(TestDataResolver.LoadTestFile("emptyStylesheetWithOnePage.qls"), new SymbolTable()); Node ast = _parsingService.Process(stylesheetTask).Ast; _assertVisitor.EnqueueStylesheetNodeCallback(st => { Assert.AreEqual("test", st.Label); }); _assertVisitor.EnqueuePageNodeCallback(p => { Assert.AreEqual("testPage", p.Label); }); ast.Accept(_assertVisitor); _assertVisitor.VerifyAll(); }
public void ParseSimpleStylesheetWithOnePage_WillSucceed() { Node ast = _parsingService.ParseQLSSheet(TestDataResolver.LoadTestFile("emptyStylesheetWithOnePage.qls")); _assertVisitor.EnqueueStylesheetNodeCallback(st => { Assert.AreEqual("test", st.Label); }); _assertVisitor.EnqueuePageNodeCallback(p => { Assert.AreEqual("testPage", p.Label); }); ast.Accept(_assertVisitor); _assertVisitor.VerifyAll(); }