Skip to content

Return null from ArrangeData in [NoDb] tests - #1099

Merged
SimonCropp merged 1 commit into
mainfrom
nodb-arrangedata-null
Oct 2, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
nodb-arrangedata-null

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

In a [NoDb] test, ArrangeData now returns null instead of throwing. Code under test often takes a context it never uses, so a [NoDb] test can construct it with ArrangeData instead of needing a null-check helper.

ActData, AssertData and Reset still throw.

Applies to the MSTest, NUnit, TUnit and xUnit v3 bases. Tests and docs updated.

Code under test often takes a context it never uses, so a [NoDb] test can
now construct it with ArrangeData. ActData, AssertData and Reset still throw.
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.

1 participant