示例#1
0
        public void IdenticalValuesCube()
        {
            var cube = IdenticalCube(123);

            SparseArray3D <int> arr = new SparseArray3D <int>(cube);

            AssertEqual(cube, arr);

            var snap = arr.TreeSnapshot();

            Assert.AreEqual(NodeType.Leaf, snap.Type);
        }
示例#2
0
        public void ChangingValuesCube()
        {
            SparseArray3D <int> arr = new SparseArray3D <int>(CubeLength, CubeLength, CubeLength);

            var uniqueCube = UniqueCube;

            SetAll(uniqueCube, arr);
            AssertEqual(uniqueCube, arr);

            var identCube = IdenticalCube(123);

            SetAll(identCube, arr);
            AssertEqual(identCube, arr);

            var snap = arr.TreeSnapshot();

            Assert.AreEqual(NodeType.Leaf, snap.Type);
        }