1 write to _switchName
PresentationCore.Tests (1)
TestUtilities\AppContextSwitchScope.cs (1)
37
_switchName
= switchName;
3 references to _switchName
PresentationCore.Tests (3)
TestUtilities\AppContextSwitchScope.cs (3)
42
AppContext.SetSwitch(
_switchName
, _originalState);
43
if (!AppContext.TryGetSwitch(
_switchName
, out bool isEnabled) || isEnabled != _originalState)
45
throw new InvalidOperationException($"Could not reset {
_switchName
} to {_originalState}.");