public void GetTemperatureCommand_WhenCreated_TheIdentifierIsCorrect() { //Act Command command = new GetTemperatureCommand(); //Assert Assert.AreEqual('T', command.Identifier); }
public void GetTemperatureResponse_WhenConstructed_FlowValueIsParsedCorrectly() { //Arrange GetTemperatureCommand command = new GetTemperatureCommand(); byte[] data = ResponseHelper.AppendChecksum(new byte[] { 0x54, 0x01 }); //Act GetTemperatureResponse response = new GetTemperatureResponse(command, data); //Assert Assert.AreEqual(0x01, response.Flow, "The temperature value is not correct."); }