public void SerializeGuid()
        {
            Assert.True(SystemTypeKeySerializer <Guid> .CanSerialize);

            var value  = new Guid("b2eb9f9a-a397-49d8-93b0-c0fe636ff569");
            var result = SystemTypeKeySerializer <Guid> .Serialize(value);

            Assert.Equal("b2eb9f9a-a397-49d8-93b0-c0fe636ff569", result);
        }
        public void SerializeDateTime()
        {
            Assert.True(SystemTypeKeySerializer <DateTime> .CanSerialize);

            var value  = DateTime.Now;
            var result = SystemTypeKeySerializer <DateTime> .Serialize(value);

            Assert.Equal(value.Ticks.ToString(), result);
        }
        public void SerializeTimeSpan()
        {
            Assert.True(SystemTypeKeySerializer <TimeSpan> .CanSerialize);

            var value  = new TimeSpan(1234567890);
            var result = SystemTypeKeySerializer <TimeSpan> .Serialize(value);

            Assert.Equal("1234567890", result);
        }
        public void SerializeString()
        {
            Assert.True(SystemTypeKeySerializer <String> .CanSerialize);

            var inValue = "Hello";
            var result  = SystemTypeKeySerializer <String> .Serialize(inValue);

            Assert.Equal(inValue, result);
            Assert.Same(inValue, result);
        }