public void Test_Map_TimeSpan_To_String()
        {
            var value = DateTime.Now.TimeOfDay;
            var obj   = new { TimeSpan = value };
            var B     = new StringModel();

            ObjectMapper.MapOnly(obj, B, m => m.TimeSpan, false, StringComparison.OrdinalIgnoreCase);
            Assert.AreEqual(value.ToString(), B.TimeSpan);
        }
        public void Test_Map_Guid_To_String()
        {
            var value = Guid.Parse("63559BC0-1FEF-4158-968E-AE4B94974F8E");
            var obj   = new { Guid = value };
            var B     = new StringModel();

            ObjectMapper.MapOnly(obj, B, m => m.Guid, false, StringComparison.OrdinalIgnoreCase);
            Assert.AreEqual(value.ToString(), B.Guid);
        }
        public void Test_Map_DateTime_To_String()
        {
            var value = DateTime.Now;
            var obj   = new { DateTime = value };
            var B     = new StringModel();

            ObjectMapper.MapOnly(obj, B, m => m.DateTime, false, StringComparison.OrdinalIgnoreCase);
            Assert.AreEqual(value.ToString(), B.DateTime);;
        }
        public void Test_Map_String_To_Type()
        {
            var A = new StringModel()
            {
                Number = "1", TimeSpan = TimeSpan.FromHours(1).ToString(), DateTime = DateTime.Now.ToString(), Guid = Guid.NewGuid().ToString()
            };
            var B = new TypeModel()
            {
            };

            ObjectMapper.Map(A, B);
            Assert.AreEqual(B.TimeSpan.ToString(), A.TimeSpan);
            Assert.AreEqual(B.Number.ToString(), A.Number);
            Assert.AreEqual(B.TimeSpan.ToString(), A.TimeSpan);
            Assert.AreEqual(B.Guid.ToString(), A.Guid);
        }