예제 #1
0
        public void LeastDistuptiveSubrangeTestReplace()
        {
            int[] original    = { 1, 2, 3, 4, 5 };
            int[] replacement = { 3, 5, 3 };

            int[] newArray = LeastDisruptiveSubrange.FindLeastDisruptiveSubrangeIndex(original, replacement);
        }
예제 #2
0
        public void LeastDistuptiveSubrangeTestReplace()
        {
            int[] original    = { 1, 2, 3, 4, 5 };
            int[] replacement = { 3, 5, 3 };

            int smallestIndex = LeastDisruptiveSubrange.FindLeastDisruptiveSubrangeIndex(original, replacement);

            Assert.AreEqual(2, smallestIndex);
        }