public void DictionaryKeyLettersAreInAlphabeticalOrder() { FileWordReader reader = new FileWordReader(Path); Assert.IsTrue(reader.ReadWords().ContainsKey("alsu")); Assert.IsTrue(reader.ReadWords().ContainsKey("adgnsu")); }
public void AddsCorrectWordsToDictionaryValues() { FileWordReader reader = new FileWordReader(Path); var dictWords = reader.ReadWords(); List <string> words; bool wordExists = dictWords.TryGetValue("adgnsu", out words); Assert.IsTrue(wordExists); Assert.IsTrue(words.Contains("dangus")); Assert.IsTrue(words.Contains("dugnas")); Assert.IsTrue(words.Contains("gandus")); }