public void FindASpecificWordInDictionaryWithTwoWordsWithSameHash()
 {
     var dictionary = new DictionaryClass<string, string>();
     dictionary.Add("apple", "apple");
     dictionary.Add("apple", "pear");
     var word = dictionary.Find("apple");
     word.ShouldEqual("apple");
 }
 public void VerifyFindAStructureWithSameHashCodeDictionary()
 {
     var dictionary = new DictionaryClass<string, NewEntry>();
     var newEntry = new NewEntry("apple", "It is a fruit");
     var newEntry2 = new NewEntry("tomato", "It is a vegetable");
     dictionary.Add(newEntry.Name, newEntry);
     dictionary.Add(newEntry2.Name, newEntry2);
     var word = dictionary.Find(newEntry2.Name);
     word.ShouldEqual<NewEntry>(newEntry2);
 }