public void WriteByteTest()
        {
            byte[] result;
            using (var writer = new FrameDataWriter())
            {
                writer.WriteByte(0x01);
                writer.WriteByte(0x02);
                writer.WriteByte(0x03);
                result = writer.ToArray();
            }

            Assert.IsNotNull(result);
            Assert.AreEqual(3, result.Length);
            Assert.AreEqual(0x01, result[0]);
            Assert.AreEqual(0x02, result[1]);
            Assert.AreEqual(0x03, result[2]);
        }
 public void DisposeTest()
 {
     var writer = new FrameDataWriter();
     writer.Dispose();
     writer.WriteByte(0x00);
 }