public void Test_FlatArray()
 {
     int[] theFirstArray  = { 2, 52, 56, 12, 3 };
     int[] theSecondArray = { 1, 0, 65, 42 };
     int[] theThirdArray  = { 3, 4, 6 };
     int[] ExpectedResult = { 0, 1, 2, 3, 3, 4, 6, 12, 42, 52, 56, 65 };
     Assert.Equal(ExpectedResult, FlatArray.Combine(theFirstArray, theSecondArray, theThirdArray));
 }
Exemplo n.º 2
0
 public void Test_FlatArray()
 {
     int[] theFirstArray  = { 2, 52, 56, 12, 3 };
     int[] theSecondArray = { 1, 0, 65, 42 };
     int[] theThirdArray  = { 3, 4, 6 };
     int[] expected       = { 1, 0, 2, 3, 4, 6, 12, 42, 52, 56, 65 };
     Assert.Equal(expected, FlatArray.Combine());
 }
Exemplo n.º 3
0
        public void tes_combine_array()
        {
            int[] arr1 = { 2, 52 };
            int[] arr2 = { 65, 42 };
            int[] arr3 = { 3, 4, 6 };

            int[] expected = { 2, 3, 4, 6, 42, 52, 65 };
            Assert.Equal(expected, FlatArray.Combine(arr1, arr2, arr3));
        }