Example #1
0
        public void NotMatchingIndicesTestCase3()
        {
            var input = new[] { 1, 2, 3, 4, 5 };

            HeightChecker.NotMatchingIndices(input).Should().Be(0);
        }
Example #2
0
        public void NotMatchingIndicesTestCase2()
        {
            var input = new[] { 5, 1, 2, 3, 4 };

            HeightChecker.NotMatchingIndices(input).Should().Be(5);
        }
Example #3
0
 public void BeforeEach()
 {
     HeightChecker = new HeightChecker();
 }
Example #4
0
        public void NotMatchingIndicesTestCase1()
        {
            var input = new[] { 1, 1, 4, 2, 1, 3 };

            HeightChecker.NotMatchingIndices(input).Should().Be(3);
        }
Example #5
0
        public int HeightCheckerSolution(int[] data)
        {
            var testClass = new HeightChecker();

            return(testClass.Solution(data));
        }