Пример #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);
        }