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); }
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); }