Ejemplo n.º 1
0
        public void PopulatedGetEntries(string name, string number)
        {
            Assert.IsTrue(phonebook.AddEntry(number, name));
            CollectionAssert.AreNotEqual(phonebook.GetEntries(), new Dictionary <string, string>());
            KeyValuePair <string, string> entry = new KeyValuePair <string, string>(number, name);

            CollectionAssert.Contains(phonebook.GetEntries(), entry);
        }