public void GetReferencePressureCommand_WhenCreated_TheIdentifierIsCorrect()
        {
            //Act
            Command command = new GetReferencePressureCommand();

            //Assert
            Assert.AreEqual('R', command.Identifier);
        }
Exemple #2
0
        public void GetReferencePressureResponse_WhenConstructed_FlowValueIsParsedCorrectly()
        {
            //Arrange
            GetReferencePressureCommand command = new GetReferencePressureCommand();

            byte[] data = ResponseHelper.AppendChecksum(new byte[] { 0x52, 0x01 });

            //Act
            GetReferencePressureResponse response = new GetReferencePressureResponse(command, data);

            //Assert
            Assert.AreEqual(0x01, response.Flow, "The reference pressure value is not correct.");
        }