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