public void BaseStationMessage_ToString_Only_Shows_6_Decimal_Places_For_Latitude_And_Longitude()
        {
            var message = new BaseStationMessage() {
                Latitude = 0.123456789012345,
                Longitude = 0.543210987654321,
            };

            var text = message.ToBaseStationString();

            Assert.AreNotEqual(-1, text.IndexOf(",0.123457,"));
            Assert.AreNotEqual(-1, text.IndexOf(",0.543211,"));
        }
        public void BaseStationMessage_ToString_Only_Shows_1_Decimal_Place_For_GroundSpeed()
        {
            var message = new BaseStationMessage() {
                GroundSpeed = 0.654321F,
            };

            var text = message.ToBaseStationString();

            Assert.AreNotEqual(-1, text.IndexOf(",0.7,"));
        }
 /// <summary>
 /// Converts the message passed across to the bytes that are expected to be transmitted for it.
 /// </summary>
 /// <param name="message"></param>
 /// <returns></returns>
 private byte[] ExpectedBytes(BaseStationMessage message)
 {
     return Encoding.ASCII.GetBytes(String.Concat(message.ToBaseStationString(), "\r\n"));
 }