public void test_solution_whenGivenAnArrayOfIntegers_returnsSmallesPositiveIntergerThatIsNotInArray(int[] given, int expected) { var target = new MissingInteger(); var actual = target.solution(given); Assert.AreEqual(expected, actual); }
private void Test(int[] a, int expectedResult) { var result = _missingInteger.solution(a); Assert.AreEqual(expectedResult, result); }
public void MissingIntegerTest_136412_Returns_5() { int[] A = { 1, 3, 6, 4, 1, 2 }; Assert.AreEqual(_mInt.solution(A), 5); }
public void MissingIntegerTest_01() { var solution = mi.solution(new int[] { 1, 3, 6, 4, 1, 2 }); Assert.AreEqual(5, solution); }