public void CopyEntityTest() { var sample1 = new SampleNonCloneable(); var sample2 = new SampleNonCloneable(); sample1.FieldValue = 1; sample2.FieldValue = 2; sample1.PropertyValue = 1; sample2.PropertyValue = 2; Assert.AreNotEqual(sample1, sample2); CloneUtil.CopyEntity(sample1, sample2); Assert.AreEqual(sample1, sample2); Assert.AreEqual(1, sample2.FieldValue); Assert.AreEqual(1, sample2.PropertyValue); }