public void JsonSerialization_ReturnsCorrectJson() { var response = new MonitorNuGetProcessExitResponse(MessageResponseCode.Success); var json = TestUtilities.Serialize(response); Assert.Equal("{\"ResponseCode\":\"Success\"}", json); }
public void Constructor_InitializesResponseCodeProperty() { var response = new MonitorNuGetProcessExitResponse(MessageResponseCode.Success); Assert.Equal(MessageResponseCode.Success, response.ResponseCode); }