Пример #1
0
        public void TestParsing()
        {
            var goldParser = new GoldGrammar();
            var definition = goldParser.Build(goldBnf);

            // check rules
            CollectionAssert.AreEquivalent(GOLD_RULES, definition.Rules.Keys);
        }
Пример #2
0
        public void TestParsing()
        {
            var goldParser = new GoldGrammar();
            var definition = goldParser.Build(goldBnf);

            // check rules
            Assert.Equal(GOLD_RULES, definition.Rules.Keys);
        }