Beispiel #1
0
        public void getLastNumberItemInArray()
        {
            ArrayKatas arrayKata = new ArrayKatas();

            int[] numberArray = { 1, 2, 3 };

            int result = arrayKata.getLastItemInArray(numberArray);

            Assert.AreEqual(3, result);
        }
Beispiel #2
0
        public void getLastNameItemInArray()
        {
            ArrayKatas arrayKata = new ArrayKatas();

            string[] nameArray = { "apple", "orange", "banana" };

            string result = arrayKata.getLastItemInArray(nameArray);

            Assert.AreEqual("banana", result);
        }