public void SmartlyCloneTest_ShouldReturnOriginal_IfNonValueNonCloneableIsPassed() { // Arrange var a = new NonValueNonCloneableMock(); a.ValueMember = 1; a.ObjectMember = new object(); // Act var b = (NonValueNonCloneableMock)a.SmartlyClone(); // Assert Assert.AreSame(a, b); }
public void SmartlyCloneTest_ShouldReturnOriginal_IfNonValueNonCloneableIsPassed() { // Arrange var a = new NonValueNonCloneableMock(); a.ValueMember = 1; a.ObjectMember = new object(); // Act var b = (NonValueNonCloneableMock)a.SmartlyClone(); // Assert Assert.AreSame(a, b); }