public void OddOccurances_Should_Process_Complex_Array() { OddOccurances subject = new OddOccurances(); int[] array = { 1, 4, 5, 9, 1, 4, 5, 9, 11, 11, 11 }; int result = subject.solution(array); Assert.Equal(11, result); }
public void OddOccurances_Should_Handle_Empty_Array() { OddOccurances subject = new OddOccurances(); int[] array = { }; int result = subject.solution(array); Assert.Equal(0, result); }