Skip to content

test: ensure Compile skips open generic mapping rules (#925)#965

Merged
DocSvartz merged 2 commits into
MapsterMapper:developmentfrom
wyf027:test/compile-open-generic-mapping-925
Jun 15, 2026
Merged

test: ensure Compile skips open generic mapping rules (#925)#965
DocSvartz merged 2 commits into
MapsterMapper:developmentfrom
wyf027:test/compile-open-generic-mapping-925

Conversation

@wyf027

@wyf027 wyf027 commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add regression coverage for configuring ClassA<>ClassB<> and calling Compile() without throwing
  • Verifies closed generic mappings still work after validation

Addresses #925

Test plan

  • CI passes (WhenMappingWithOpenGenerics.Compile_With_Open_Generic_Mapping_Does_Not_Throw)

Add regression coverage for configuring ClassA<> to ClassB<> and calling
Compile() without throwing, matching the documented validation behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread src/Mapster.Tests/WhenMappingWithOpenGenerics.cs Outdated
@DocSvartz DocSvartz merged commit 03d7edc into MapsterMapper:development Jun 15, 2026
2 checks passed
This was referenced Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants