Esempio n. 1
0
        public void GetAllKeysTest()
        {
            var dictionary = new Dictionary <string, int>
            {
                { "she", 0 },
                { "sells", 0 },
                { "shells", 0 },
                { "by", 0 },
                { "the", 0 },
                { "sea", 0 },
                { "shore", 0 },
                { "a", 0 }
            };

            IEnumerable <string> allKeys = _symbolTable.GetAllKeys();

            int expected = 8;
            int actual   = CheckKeys(allKeys, dictionary);

            Assert.AreEqual(expected, actual);
        }