public void Clear_is_idempotent() { using (new StateProviderFixture()) { StateProvider.Clear(); StateProvider.Clear(); StateProvider.Clear(); } }
public void Calling_setup_after_clear_does_not_throw() { using (new StateProviderFixture()) { StateProvider.Setup(typeof(NoStates)); StateProvider.Clear(); StateProvider.Setup(typeof(NoStates)); } }
public void Dispose() { StateProvider.Clear(); Monitor.Exit(Sync); }
public StateProviderFixture() { Monitor.Enter(Sync); StateProvider.Clear(); }