public static void ModifiedClone_ComplexObject_ShouldNotBeEqual() { using var original = new ComplexObject(100); ComplexObject cloned = original.Clone(); cloned.listOfStrings.Add("new string"); cloned.ShouldNotBe(original); }
public static void ModifiedClone_ComplexObject_ShouldNotBeEqual() { using var original = new ComplexObject(100); ComplexObject cloned = original.Clone(); cloned.listOfStrings.Add("new string"); cloned.ShouldNotBe(original); }