public void CopyNull() { FloatMatrix a = null; FloatMatrix b = new FloatMatrix(2); b.Copy(a); }
public void Copy() { FloatMatrix a = new FloatMatrix(2); a[0, 0] = 1; a[0, 1] = 2; a[1, 0] = 3; a[1, 1] = 4; FloatMatrix b = new FloatMatrix(2); b.Copy(a); Assert.AreEqual(a[0, 0], a[0, 0]); Assert.AreEqual(a[0, 1], b[0, 1]); Assert.AreEqual(a[1, 0], b[1, 0]); Assert.AreEqual(a[1, 1], b[1, 1]); }