public void MapFrom_Tests() { var obj2 = new MyClass2 { TestProp = "Test value" }; var obj1 = obj2.MapTo<MyClass1>(); obj1.TestProp.ShouldBe("Test value"); }
public void MapFrom_Tests() { var obj2 = new MyClass2 { TestProp = "Test value" }; var obj1 = obj2.MapTo <MyClass1>(); obj1.TestProp.ShouldBe("Test value"); }
public void MapTo_Existing_Object_Tests() { var obj1 = new MyClass1 { TestProp = "Test value" }; var obj2 = new MyClass2(); obj1.MapTo(obj2); obj2.TestProp.ShouldBe("Test value"); var obj3 = new MyClass3(); obj2.MapTo(obj3); obj3.TestProp.ShouldBe("Test value"); }