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 8d61e43 commit 2c37aa1Copy full SHA for 2c37aa1
1 file changed
src/Mapster.Tests/WhenMappingWithOpenGenerics.cs
@@ -24,9 +24,7 @@ public void Setting_From_OpenGeneric_Has_No_SideEffect()
24
config
25
.NewConfig(typeof(A<>), typeof(B<>))
26
.Map("BProperty", "AProperty");
27
-
28
- config.Compile(); // is not throw exception
29
+
30
var a = new A<C> { AProperty = "A" };
31
var c = new C { BProperty = "C" };
32
var b = a.Adapt<B<C>>(config); // successful mapping
0 commit comments