Exemplo n.º 1
0
        public void MaximumDoesNotDecreaseSequence_4_3_2_1_Return_()
        {
            // arrange
            int[] array    = { 4, 3, 2, 1 };
            int[] expected = null;
            //act
            int[] actual = ArraysTasks.MaximumDoesNotDecreaseSequence(array);
            //assert

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
 public void MaximumDoesNotDecreaseSequence_1_2_3_1_2_3_4_5_Return_1_2_3_4_5()
 {
     // arrange
     int[] array    = { 1, 2, 3, 1, 2, 3, 4, 5 };
     int[] expected = { 1, 2, 3, 4, 5 };
     //act
     int[] actual = ArraysTasks.MaximumDoesNotDecreaseSequence(array);
     //assert
     for (int i = 0; i < expected.Length; i++)
     {
         Assert.AreEqual(expected[i], actual[i]);
     }
 }
Exemplo n.º 3
0
 public void MaximumDoesNotDecreaseSequence_10_1_1_1_1_minus3_Return_1_1_1_1()
 {
     // arrange
     int[] array    = { 10, 1, 1, 1, 1, -3 };
     int[] expected = { 1, 1, 1, 1 };
     //act
     int[] actual = ArraysTasks.MaximumDoesNotDecreaseSequence(array);
     //assert
     for (int i = 0; i < expected.Length; i++)
     {
         Assert.AreEqual(expected[i], actual[i]);
     }
 }