Skip to content

Mark TestHostControllersTestHost constructor as Unsupported browser #6047

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

SimonCropp
Copy link
Contributor

so we can remove the repetitive pragma warning disable CA1416

so we can remove the repetitive `pragma warning disable CA1416`
Copy link
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better option here is to mark the constructor itself as unsupported, instead of InternalRunAsync. That way we can get the warning to propagate up correctly. Then, in TestHostBuilder when we are about to create TestHostControllersTestHost, we will do a check for browser and throw an exception.

@SimonCropp SimonCropp changed the title Mark TestHostControllersTestHost.InternalRunAsync as Unsupported browser Mark TestHostControllersTestHost constructor as Unsupported browser Jul 17, 2025
@SimonCropp
Copy link
Contributor Author

SimonCropp commented Jul 17, 2025

@Youssef1313 done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants