1 write to _switchName
System.Private.Windows.Core.TestUtilities (1)
AppContextSwitchScope.cs (1)
45
_switchName
= switchName;
3 references to _switchName
System.Private.Windows.Core.TestUtilities (3)
AppContextSwitchScope.cs (3)
50
AppContext.SetSwitch(
_switchName
, _originalState);
51
if (!AppContext.TryGetSwitch(
_switchName
, out bool isEnabled) || isEnabled != _originalState)
53
throw new InvalidOperationException($"Could not reset {
_switchName
} to {_originalState}.");