public void TestCopyInto() { Blueprint a = new Blueprint(3, 3, 3); a.AddBlock(new Discrete3DCoord(0, 0, 0), 1); a.AddBlock(new Discrete3DCoord(0, 0, 1), 1); a.AddBlock(new Discrete3DCoord(0, 0, 2), 1); Blueprint mismatched_size = new Blueprint(2, 3, 3); Assert.Throws <System.ArgumentException>(() => a.CopyInto(mismatched_size)); Blueprint copy = new Blueprint(3, 3, 3); a.CopyInto(copy); CollectionAssert.AreEqual(a.GetBlocks(), copy.GetBlocks()); }