public void ReturnNullIfDeserializingNull()
        {
            Serializer <ulong?> serializer = new NullableUInt64Serializer();
            ulong?actualDeserializedValue  = serializer.Deserialize(null);

            Assert.Null(actualDeserializedValue);
        }
        public void SerializeAndDeserializeToTheSameObject(ulong?originalValue)
        {
            Serializer <ulong?> serializer = new NullableUInt64Serializer();

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

            Assert.Equal(originalValue, deserializedValue);
        }
        public void ThrowIfDeserializingLessThanEightBytes(byte[] data)
        {
            Serializer <ulong?> serializer = new NullableUInt64Serializer();

            Assert.Throws <ArgumentOutOfRangeException>(() => serializer.Deserialize(data));
        }