Skip to content

feat(mstest): Mark TestContext as virtual#3210

Merged
mxschmitt merged 1 commit intomicrosoft:mainfrom
MattKotsenas:feature/3209
Jul 28, 2025
Merged

feat(mstest): Mark TestContext as virtual#3210
mxschmitt merged 1 commit intomicrosoft:mainfrom
MattKotsenas:feature/3209

Conversation

@MattKotsenas
Copy link
Copy Markdown
Member

@MattKotsenas MattKotsenas commented Jul 23, 2025

WorkerAwareTest is designed to be inherited for testing. As such, the TestContext property, which is injected by the test framework, should be marked virtual so that inheritors can override behavior as necessary.

Fixes #3209.

`WorkerAwareTest` is designed to be inherited for testing. As such,
the TestContext property, which is injected by the test framework
should be marked `virtual` so that inheritors can override behavior
as necessary.
@SimonCropp
Copy link
Copy Markdown
Contributor

yes please

@mxschmitt mxschmitt closed this Jul 27, 2025
@mxschmitt mxschmitt reopened this Jul 27, 2025
@mxschmitt mxschmitt merged commit 2e8d796 into microsoft:main Jul 28, 2025
31 checks passed
@SimonCropp
Copy link
Copy Markdown
Contributor

@mxschmitt thanks. any eta on a release?

@mxschmitt
Copy link
Copy Markdown
Contributor

2-3 weeks I assume.

@MattKotsenas MattKotsenas deleted the feature/3209 branch July 29, 2025 00:57
@SimonCropp
Copy link
Copy Markdown
Contributor

@mxschmitt can we get a beta nuget earlier?

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.

[Feature]: MSTest WorkerAwareTest.TestContext should be virtual

3 participants