public void TestCopy() { long[] x = new long[] { 2, 1, 3, 2 }; long[] y = AbstractHashGenerator.Copy(x); Assert.IsTrue(Common.Base.Compares.AreDeepEqual(x, y)); Assert.AreNotSame(x, y); }
public void TestCopy_SrcDest() { long[] x = new long[] { 42, 23, 1, 72 }; long[] y = new long[4]; AbstractHashGenerator.Copy(x, y); Assert.IsTrue(Common.Base.Compares.AreDeepEqual(x, y)); Assert.AreNotSame(x, y); }