public void CanSerializeAndDeserialize()
        {
            ushort value = ushort.MaxValue;
            UShortConverter converter = new UShortConverter();
            byte[] bytes = converter.Serialize(value);

            ushort valueFromBytes = converter.Deserialize(bytes);

            Assert.Equal(valueFromBytes, value);
        }
        public void ValidateconvertToTypeUInt16()
        {
            var value = new UShortConverter("65034").ConvertToObject("", CultureInfo.GetCultureInfo("en-IE"));

            Assert.AreEqual((ushort)0xFE0A, value);
        }
        public void ValidateReadTypeUInt16()
        {
            var value = new UShortConverter(0xFE0A).GetString("", CultureInfo.GetCultureInfo("en-IE"));

            Assert.AreEqual("65034", value);
        }