Example #1
0
        public void GetLocationsIncludingOrigin_SmallTest()
        {
            int[,] locations = new int[, ] {
            };
            int locationsCount = 0;

            int[,] expected = new int[, ] {
                { 0, 0 }
            };;

            Assert.IsTrue(TestHelpers.Are2DArraysEqual <int>(expected, DeliveryTruck.GetLocationsIncludingOrigin(locations, locationsCount)));
        }
Example #2
0
        public void GetLocationsIncludingOrigin_LargeTest()
        {
            int[,] locations = new int[, ] {
                { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 },
            };
            int locationsCount = 4;

            int[,] expected = new int[, ] {
                { 0, 0 }, { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 },
            };;

            Assert.IsTrue(TestHelpers.Are2DArraysEqual <int>(expected, DeliveryTruck.GetLocationsIncludingOrigin(locations, locationsCount)));
        }