예제 #1
0
        public void MapObject()
        {
            var item = new MappingObjectTester()
            {
                Temp = this,
            };

            var data = item.Map<MappingObjectTester>();

            Assert.IsNotNull(data);
            Assert.AreEqual(item.Temp, data.Temp);
        }
예제 #2
0
        public void MapNullObjectToString()
        {
            var item = new MappingObjectTester();

            var data = item.Map<MappingStringTester>();

            Assert.IsNotNull(data);
            Assert.AreEqual(item.Temp, data.Temp);
        }