public void SendOneParamByteTest()
        {
            DataSendingNaoEvent e = new DataSendingNaoEvent(0xFF, 1);
            e.SendAsByte();
            StartRead();
            byte val = stream.ReadByte();
            Assert.AreEqual(0xFF, val);

            val = stream.ReadByte();
            Assert.AreEqual(1, val);
        }
        public void SendMultipleParamsByteTest()
        {
            DataSendingNaoEvent e = new DataSendingNaoEvent(0xFF, 0, 1, 2, 3, 4);
            e.SendAsByte();
            StartRead();
            byte val = stream.ReadByte();
            Assert.AreEqual(0xFF, val);

            for (int i = 0; i <= 4; i++)
            {
                Assert.AreEqual(i, stream.ReadByte());
            }
        }