public void getLastNumberItemInArray() { ArrayKatas arrayKata = new ArrayKatas(); int[] numberArray = { 1, 2, 3 }; int result = arrayKata.getLastItemInArray(numberArray); Assert.AreEqual(3, result); }
public void getLastNameItemInArray() { ArrayKatas arrayKata = new ArrayKatas(); string[] nameArray = { "apple", "orange", "banana" }; string result = arrayKata.getLastItemInArray(nameArray); Assert.AreEqual("banana", result); }