public void GetDataTest()
        {
            byte[] expected = DataGenerator.ExtractDataBytes(
                DataGenerator.GetInfoPackets()[0], DataStartPosition);
            InfoPacket packet = new InfoPacket(DataGenerator.GetInfoPackets()[0]);

            CollectionAssert.AreEqual(expected, packet.GetData());
        }
        public void GetDataTest()
        {
            List <byte[]>    rawPackets = DataGenerator.GetInfoPackets();
            InfoPacket       packet1    = new InfoPacket(rawPackets[0]);
            InfoPacket       packet2    = new InfoPacket(rawPackets[1]);
            PacketCollection packets    = new PacketCollection();

            packets.Add(packet1);
            packets.Add(packet2);


            byte[] result = packets.GetData();
            Assert.IsNotNull(result);
            Assert.IsTrue(result.Length > 0);
            Assert.IsTrue(result.Length == packet1.GetData().Length + packet2.GetData().Length);
        }