public void NotMatchingIndicesTestCase3() { var input = new[] { 1, 2, 3, 4, 5 }; HeightChecker.NotMatchingIndices(input).Should().Be(0); }
public void NotMatchingIndicesTestCase2() { var input = new[] { 5, 1, 2, 3, 4 }; HeightChecker.NotMatchingIndices(input).Should().Be(5); }
public void BeforeEach() { HeightChecker = new HeightChecker(); }
public void NotMatchingIndicesTestCase1() { var input = new[] { 1, 1, 4, 2, 1, 3 }; HeightChecker.NotMatchingIndices(input).Should().Be(3); }
public int HeightCheckerSolution(int[] data) { var testClass = new HeightChecker(); return(testClass.Solution(data)); }