public void CopyObject_WithPrivateVariable_CopiesVariable() { // Arrange _obj.SetPrivateNumber(CloneableObject.Numbers.Two); // Act var clone = _obj.CopyObject(); // Assert Assert.IsTrue(clone.GetPrivateNumber() == CloneableObject.Numbers.Two); }
public void CopyObject_WithNullSource_ThrowsException() { // Arrange _obj = null; // Act _obj.CopyObject(); }