示例#1
0
        public void LetterDictionaryLoadsWithAllLettersAndZeroCount()
        {
            Pangram pangram = new Pangram();

            var dictionary = pangram.LoadDictionary();

            // There are 26 letters in the dictionary
            Assert.AreEqual(dictionary.Count, 26);

            // For each letter we should have a count of zero
            foreach (var letterCount in dictionary)
            {
                Assert.AreEqual(letterCount.Value, 0);
            }
        }