Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix message when step is canceled through TestContext #3335

Merged
merged 4 commits into from
Jul 25, 2024

Conversation

Evangelink
Copy link
Member

Improve error message when step (fixture or test method) is being cancelled through the TestContext.

Before for AssemblyInitialize:

Assembly Initialization method Playground.TestClass.AssemblyInitialize threw exception. System.OperationCanceledException: The operation was canceled.

After for AssemblyInitialize:

Assembly initialize method 'UnitTest1.AssemblyInitialize' was canceled

@Evangelink Evangelink merged commit 5a5e7ed into microsoft:main Jul 25, 2024
6 checks passed
@Evangelink Evangelink deleted the cancellation-message branch July 25, 2024 17:16
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