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