We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84cf4b2 commit 7cfe8ecCopy full SHA for 7cfe8ec
AgileMapper.UnitTests/WhenMappingOnToComplexTypes.cs
@@ -89,5 +89,16 @@ public void ShouldHandleATargetWithNoMembers()
89
90
result.ShouldBeSameAs(target);
91
}
92
+
93
+ [Fact]
94
+ public void ShouldMapOnToInterface()
95
+ {
96
+ var source = new PublicImplementation<string> { Value = "Interface! :o" };
97
+ IPublicInterface<string> target = new PublicImplementation<string>();
98
99
+ Mapper.Map(source).OnTo(target);
100
101
+ target.Value.ShouldBe("Interface! :o");
102
+ }
103
104
0 commit comments