public void Clone_should_copy_ReasonText() { var response = new SmtpResponse(250, "Text"); var cloned = response.Clone(); Assert.Equal(response.ResponseText, cloned.ResponseText); }
public void Clone_should_copy_ReasonCode() { var response = new SmtpResponse(250, ""); var cloned = response.Clone(); Assert.Equal(response.ResponseCode, cloned.ResponseCode); }
public void Clone_should_deep_copy_Additional() { var response = new SmtpResponse(250, "", new[] { "additional" }); var cloned = response.Clone(); Assert.NotSame(response.AdditionalLines, cloned.AdditionalLines); Assert.Equal(response.AdditionalLines, cloned.AdditionalLines); }
public void Clone_should_deep_copy_Additional() { var response = new SmtpResponse(250, "", new[] { "additional" }); var cloned = response.Clone(); Assert.NotSame(response.AdditionalLines, cloned.AdditionalLines); Assert.Equal(response.AdditionalLines, cloned.AdditionalLines); }
public void Clone_should_copy_ReasonText() { var response = new SmtpResponse(250, "Text"); var cloned = response.Clone(); Assert.Equal(response.ResponseText, cloned.ResponseText); }
public void Clone_should_copy_ReasonCode() { var response = new SmtpResponse(250, ""); var cloned = response.Clone(); Assert.Equal(response.ResponseCode, cloned.ResponseCode); }