public void Constructor_Null_Message_Returns_HttpClientSettings_Returns_HttpClientSettings_With_Null_Message() { //Act var httpEventResponse = new HttpEventPushResponse(_trueValue, null); //Assert Assert.IsInstanceOfType(httpEventResponse, typeof(HttpEventPushResponse)); Assert.AreEqual(_trueValue, httpEventResponse.IsSuccess); Assert.AreEqual(null, httpEventResponse.Message); }
public void Contructor_Right_Parameters_Returns_HttpEventPushResponse_Right_Properties() { //Arrange //all necessary variables already set //Act var httpEventResponse = new HttpEventPushResponse(_trueValue, _someMessage); //Assert Assert.IsInstanceOfType(httpEventResponse, typeof(HttpEventPushResponse)); Assert.AreEqual(_trueValue, httpEventResponse.IsSuccess); Assert.AreEqual(_someMessage, httpEventResponse.Message); }