public void GetHumidityCommand_WhenCreated_TheIdentifierIsCorrect() { //Act Command command = new GetHumidityCommand(); //Assert Assert.AreEqual('H', command.Identifier); }
public void GetHumidityResponse_WhenConstructed_FlowValueIsParsedCorrectly() { //Arrange GetHumidityCommand command = new GetHumidityCommand(); byte[] data = ResponseHelper.AppendChecksum(new byte[] { 0x48, 0x01 }); //Act GetHumidityResponse response = new GetHumidityResponse(command, data); //Assert Assert.AreEqual(0x01, response.Flow, "The humidity value is not correct."); }