public void CommonEndTest() { Assert.AreEqual(true, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 1, 5, 3 }), "Test 1: Input was [1, 2, 3] and [1, 5, 3]. It should return true."); Assert.AreEqual(false, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 7, 3, 2 }), "Test 2: Input was [1, 2, 3] and [7, 3, 2]. It should return false."); Assert.AreEqual(true, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 7, 3 }), "Test 3: Input was [1, 2, 3] and [7, 3]. Did you notice the arrays were different sizes?"); Assert.AreEqual(true, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 1, 3 }), "Test 4: Input was [1, 2, 3] and [1, 3]. Did you notice the arrays were different sizes?"); }
public void CommonEndTest() { Assert.AreEqual(true, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 7, 3 }), "Input was [1, 2, 3] and [7, 3]"); Assert.AreEqual(false, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 7, 3, 2 }), "Input was [1, 2, 3] and [7, 3, 2]"); Assert.AreEqual(true, exercises.CommonEnd(new int[] { 1, 2, 3 }, new int[] { 1, 3 }), "Input was [1, 2, 3] and [1, 3]"); }