Skip to content

test: cover MapToTarget for types with read-only base properties (#918) - #972

Merged
DocSvartz merged 1 commit into
MapsterMapper:developmentfrom
wyf027:test/maptotarget-mixed-readonly-base-918-dev
May 28, 2026
Merged

test: cover MapToTarget for types with read-only base properties (#918)#972
DocSvartz merged 1 commit into
MapsterMapper:developmentfrom
wyf027:test/maptotarget-mixed-readonly-base-918-dev

Conversation

@wyf027

@wyf027 wyf027 commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds regression test for same-type Adapt(target) when the type inherits read-only base members (ObservableValidator-like pattern) alongside writable properties.

Relates to #918 (fixed on development via IsNotSelfCreation AnyAll change).

Test plan

  • MapToTarget_SameType_WithMixedReadOnlyBaseProperties_UpdatesDestination
  • CI green on development

Regression test for same-type Adapt(target) when the destination type
inherits read-only members alongside writable properties.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wyf027

wyf027 commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

Regression test only — #918 fix (IsNotSelfCreation) is already on development (388602b). Ready for review once CI workflow is approved.

@DocSvartz
DocSvartz merged commit 9b11837 into MapsterMapper:development May 28, 2026
2 checks passed
This was referenced Jun 12, 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