Example #1
0
        public static void Should_Clone_2dMultidimensionalArrayObject()
        {
            var original = new MultiDimensional2dArrayObject
            {
                Int2DArray = new int[4, 2] {
                    { 1, 2 },
                    { 3, 4 },
                    { 5, 6 },
                    { 7, 8 }
                }
            };
            MultiDimensional2dArrayObject cloned = original.Clone();

            cloned.ShouldBe(original);
        }
Example #2
0
        public void Should_Clone_2dMultidimensionalArrayObject()
        {
            var original = new MultiDimensional2dArrayObject
            {
                Int2DArray = new [, ] {
                    { 1, 2 },
                    { 3, 4 },
                    { 5, 6 },
                    { 7, 8 }
                }
            };
            var cloned = original.Clone();

            Assert.AreEqual(original, cloned);
        }