Skip to content

Commit 2c37aa1

Browse files
authored
fix(test): Drop OpenGeneric compile check because a separate test was added
1 parent 8d61e43 commit 2c37aa1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Mapster.Tests/WhenMappingWithOpenGenerics.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ public void Setting_From_OpenGeneric_Has_No_SideEffect()
2424
config
2525
.NewConfig(typeof(A<>), typeof(B<>))
2626
.Map("BProperty", "AProperty");
27-
28-
config.Compile(); // is not throw exception
29-
27+
3028
var a = new A<C> { AProperty = "A" };
3129
var c = new C { BProperty = "C" };
3230
var b = a.Adapt<B<C>>(config); // successful mapping

0 commit comments

Comments
 (0)