public void PassthroughToByteArray()
        {
            var input = new byte[] { 40, 41, 42, 43 }; 
            var conv = new Nmqtt.PassThroughPayloadConverter();
            byte[] output = conv.ConvertToBytes(input);

            Assert.Equal<int>(input.Length, output.Length);
            for (int i = 0; i < input.Length; i++)
            {
                Assert.Equal<byte>((byte)input[i], output[i]);
            }
        }
        public void PassthroughToByteArray()
        {
            var input = new byte[] { 40, 41, 42, 43 };
            var conv  = new Nmqtt.PassThroughPayloadConverter();

            byte[] output = conv.ConvertToBytes(input);

            Assert.Equal <int>(input.Length, output.Length);
            for (int i = 0; i < input.Length; i++)
            {
                Assert.Equal <byte>((byte)input[i], output[i]);
            }
        }