Exemplo n.º 1
0
 private void AddItem(WordItem item, Dictionary<string, List<WordItem>> words)
 {
     List<WordItem> items;
     if (words.TryGetValue(item.Name, out items))
         items.Add(item);
     else
         words.Add(item.Name, new List<WordItem> { item });
 }
Exemplo n.º 2
0
 private void AssertWordItemEquality(WordItem expected, WordItem actual)
 {
     Assert.AreEqual(expected.Name, actual.Name);
      Assert.AreEqual(expected.LineNum, actual.LineNum);
      Assert.AreEqual(expected.Index, actual.Index);
 }