예제 #1
0
 public void MapTest()
 {
     var obj1 = new ObjectOne { Id = 1, Name = "obj" };
     var obj2 = SimpleMapper.Map<ObjectTwo>(obj1);
     Assert.True(obj1.Id == obj2.Id);
     Assert.True(obj1.Name == obj2.Name);
 }
예제 #2
0
 public void MapSrcDestTest()
 {
     var obj1 = new ObjectOne { Id = 1, Name = "obj" };
     var obj2 = new ObjectTwo {Id = 100000, Name = "obj000000"};
     SimpleMapper.Map(obj1, obj2);
     Assert.True(obj1.Id == obj2.Id);
     Assert.True(obj1.Name == obj2.Name);
 }