2 writes to _originalState
System.Private.Windows.Core.TestUtilities (2)
AppContextSwitchScope.cs (2)
34
if (!AppContext.TryGetSwitch(switchName, out
_originalState
))
36
_originalState
= getDefaultValue is not null && getDefaultValue();
3 references to _originalState
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
}.");