コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }