winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Define new scopes for AppContext switches for use in tests

Open Tanya-Solyanik opened this issue 1 year ago • 1 comments

  1. replace use cases of SetLocalAppContextSwitchValue in tests with custom scope for each switch see BinaryFormatterScope example.
  2. Replace use cases of TestAccessor like this one - https://github.com/dotnet/winforms/blob/29528171490190df28fd4afc89dee271ebfef68b/src/System.Windows.Forms/tests/IntegrationTests/UIIntegrationTests/Dpi/FormDpiTests.cs#L111 with AppContext switch scopes as well

Tanya-Solyanik avatar Jun 15 '24 01:06 Tanya-Solyanik

@Tanya-Solyanik can we resolve this now? I am not sure if the PR covered everything. I thought I got all the usages, but could be wrong.

elachlan avatar Jun 19 '24 22:06 elachlan