public void Test_CheckHeaderPresent()
        {
            var receiver = new cBinaryReceiver("name", null, null);
            var rawTele  = new byte[18];

            rawTele[0] = 00;
            rawTele[1] = 01;
            rawTele[2] = 02;
            rawTele[4] = 04;

            Assert.Throws <TelemetryFormatException>(() => receiver.DecodeFrame(rawTele));
        }
        public void Test_Create_Max()
        {
            var    receiver      = new cBinaryReceiver("name", null, null);
            Int64  unixTimeStamp = 253402300799; // Max value for FromUnixTimeSeconds
            UInt16 teleType      = UInt16.MaxValue;
            float  teleValue     = float.MaxValue;

            var rawTele      = BuildTeleByteArray(unixTimeStamp, teleType, teleValue);
            var actualTele   = receiver.DecodeFrame(rawTele);
            var expectedTele = GetExpected(unixTimeStamp, teleType, teleValue);

            Assert.Equal(expectedTele.ToString(), actualTele.ToString());
        }
        public void Test_Create_Negative()
        {
            var    receiver      = new cBinaryReceiver("name", null, null);
            Int64  unixTimeStamp = 1604614491;
            UInt16 teleType      = 02;
            float  teleValue     = -500.0f;

            var rawTele      = BuildTeleByteArray(unixTimeStamp, teleType, teleValue);
            var actualTele   = receiver.DecodeFrame(rawTele);
            var expectedTele = GetExpected(unixTimeStamp, teleType, teleValue);

            Assert.Equal(expectedTele.ToString(), actualTele.ToString());
        }