public void TestMethod3() { int[] input = { 1, 3, 1 }; int expected = 3; int result = OddOccurrenceInArray.Solution(input); Assert.AreEqual(expected, result); }
public void TestMethod1() { int[] input = { 9, 3, 9, 3, 9, 7, 9 }; int expected = 7; int result = OddOccurrenceInArray.Solution(input); Assert.AreEqual(expected, result); }
public void TestMethod2() { int[] input = { 1, 2, 3, 4, 5, 6, 2, 4, 6, 1, 3 }; int expected = 5; int result = OddOccurrenceInArray.Solution(input); Assert.AreEqual(expected, result); }