1 write to _originalState
PresentationCore.Tests (1)
TestUtilities\AppContextSwitchScope.cs (1)
29
AppContext.TryGetSwitch(switchName, out
_originalState
);
3 references to _originalState
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
}.");