public void AnagrammaticWordsAreInSameList() { string word1 = "thread"; string word2 = "hatred"; var dict = new ComboDict(word1); dict.Add(word2); Assert.That(dict.GetWordsByWord(word1).Contains(word2)); }
public void CanAddWord() { string word = "box"; var dict = new ComboDict(word); dict.Add(word); ulong key = ComboDict.GetComboKey(word); Assert.That(dict.GetWordsByKey(key).Contains(word)); }