public void ReturnNullIfSerializingNull()
        {
            Serializer <bool?> serializer = new NullableBooleanSerializer();

            byte[] actualSerializedValue = serializer.Serialize(null);

            Assert.Null(actualSerializedValue);
        }
        public void SerializeAndDeserializeToTheSameObject(bool?originalValue)
        {
            Serializer <bool?> serializer = new NullableBooleanSerializer();

            byte[] serializedValue   = serializer.Serialize(originalValue);
            bool?  deserializedValue = serializer.Deserialize(serializedValue);

            Assert.Equal(originalValue, deserializedValue);
        }