private void CheckStructure(string expectedResult, string src) { sphereScript99Parser.PropertyListContext propertyList = null; Parse(src, parser => { propertyList = parser.propertyList(); }); var extractor = new PropertyAndTriggerExtractor(); extractor.Visit(propertyList); extractor.Output.Should().Be(expectedResult); }
private void CheckStructure(string expectedResult, string src) { sphereScript99Parser.SectionContext section = null; Parse(src, parser => { section = parser.section(); }); var extractor = new PropertyAndTriggerExtractor(); extractor.Visit(section); extractor.Output.Should().Be(expectedResult); }