예제 #1
0
        public void Test4()
        {
            int expected = 3;

            int[] input  = new int[] { 7, 7, 9 };
            var   actual = Class19.FindInsertionIndex(input, 10);

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void Test3()
        {
            int expected = 4;

            int[] input  = new int[] { 1, 2, 4, 4, 5, 6, 8 };
            var   actual = Class19.FindInsertionIndex(input, 4);

            Assert.Equal(expected, actual);
        }