예제 #1
0
        public void getLastNameInArray()
        {
            string[] nameArray = { "apple", "orange", "banana" };

            string result = ArrayKatas.getLastItemInArrayByOverloading(nameArray);

            Assert.AreEqual("banana", result);
        }
예제 #2
0
        public void getLastNumberInArray()
        {
            int[] numberArray = { 1, 2, 3 };

            int result = ArrayKatas.getLastItemInArrayByOverloading(numberArray);

            Assert.AreEqual(3, result);
        }