public void MemberwiseCloneTest() { TestClass parentClass = new TestClass(); parentClass.Id = 1204; parentClass.Parent = new TestClass(); parentClass.Parent.Id = 1566; TestClass testClass = (TestClass) parentClass.Clone(); Assert.That(parentClass.Id, Is.EqualTo(testClass.Id)); Assert.That(parentClass.Parent.Id, Is.EqualTo(testClass.Parent.Id)); }