예제 #1
0
 public void Clear_is_idempotent()
 {
     using (new StateProviderFixture())
     {
         StateProvider.Clear();
         StateProvider.Clear();
         StateProvider.Clear();
     }
 }
예제 #2
0
 public void Calling_setup_after_clear_does_not_throw()
 {
     using (new StateProviderFixture())
     {
         StateProvider.Setup(typeof(NoStates));
         StateProvider.Clear();
         StateProvider.Setup(typeof(NoStates));
     }
 }
예제 #3
0
 public void Dispose()
 {
     StateProvider.Clear();
     Monitor.Exit(Sync);
 }
예제 #4
0
 public StateProviderFixture()
 {
     Monitor.Enter(Sync);
     StateProvider.Clear();
 }