Esempio n. 1
0
        public void TestParsing()
        {
            var goldParser = new GoldGrammar();
            var definition = goldParser.Build(goldBnf);

            // check rules
            CollectionAssert.AreEquivalent(GOLD_RULES, definition.Rules.Keys);
        }
        public void TestParsing()
        {
            var goldParser = new GoldGrammar();
            var definition = goldParser.Build(goldBnf);

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