public void SingleEntryChange() { string name = "Lili"; string[] numbers = { "0899 777 235" }; PhonebookRepository phonebook = new PhonebookRepository(); phonebook.AddPhone(name, numbers); int result = phonebook.ChangePhone("0899 777 235", "4"); Assert.AreEqual(1, result); }
public void MultiplePhonesChangePhoneTest() { PhonebookRepository phonebook = new PhonebookRepository(); int contactsEntered = 0; for (int i = 0; i < 5; i++) { string name = "Lili" + i; string[] numbers = {"0899 777 23"}; } int result = phonebook.ChangePhone("0899 777 23", "53426"); Assert.AreEqual(5, result); }