public void BytePropertyNumberWrite()
        {
            using (var stream = new MemoryStream())
                using (var writer = new BinaryWriter(stream))
                {
                    var prop = new ByteProperty(ByteNumberName)
                    {
                        Type  = "None",
                        Value = "0"
                    };

                    prop.Serialize(writer);

                    Assert.AreEqual(1, prop.SerializedLength);
                    CollectionAssert.AreEqual(ByteNumberBytes, stream.ToArray());
                }
        }
        public void BytePropertyEnumWrite()
        {
            using (var stream = new MemoryStream())
                using (var writer = new BinaryWriter(stream))
                {
                    var prop = new ByteProperty(ByteEnumName)
                    {
                        Type  = ByteEnumType,
                        Value = ByteEnumValue
                    };

                    prop.Serialize(writer);

                    Assert.AreEqual(16, prop.SerializedLength);
                    CollectionAssert.AreEqual(ByteEnumBytes, stream.ToArray());
                }
        }