public void getLastNameInArray() { string[] nameArray = { "apple", "orange", "banana" }; string result = ArrayKatas.getLastItemInArrayByOverloading(nameArray); Assert.AreEqual("banana", result); }
public void getLastNumberInArray() { int[] numberArray = { 1, 2, 3 }; int result = ArrayKatas.getLastItemInArrayByOverloading(numberArray); Assert.AreEqual(3, result); }