public void MapToExistentTests() { var obj = new AutoMapperObjectMapper(); var result = new H2(); result = obj.Map(new H1 { Value = 42 }, result); Assert.AreEqual(result.Value, 42); }
public void MapToNewTests() { var obj = new AutoMapperObjectMapper(); var result = obj.Map <H1, H2>(new H1 { Value = 42 }); Assert.AreEqual(result.Value, 42); }
public void MapToExistentTests() { var obj = new AutoMapperObjectMapper(); var result = new H2(); result = obj.Map(new H1 { Value = 42 }, result); Assert.AreEqual(result.Value, 42); }
public void MapToNewTests() { var obj = new AutoMapperObjectMapper(); var result = obj.Map<H1, H2>(new H1 {Value = 42}); Assert.AreEqual(result.Value, 42); }