public void PortInputFormatSetupSingleEncoder_Encode(string expectedDataAsString, byte portId, byte mode, uint deltaInterval, bool notificationEnabled) { // arrange var message = new PortInputFormatSetupSingleMessage(portId, mode, deltaInterval, notificationEnabled); // act var data = MessageEncoder.Encode(message, null); // assert Assert.Equal(expectedDataAsString, BytesStringUtil.DataToString(data)); }