Beispiel #1
0
 public void TearDown()
 {
     lock (Lock)
     {
         SingletonHelper.CleanUpAfterTest();
         _isRunning = false;
     }
 }
Beispiel #2
0
        public void Setup()
        {
            while (true)
            {
                if (!_isRunning)
                {
                    lock (Lock)
                    {
                        if (!_isRunning)
                        {
                            _isRunning = true;
                            break;
                        }
                    }
                }
                Thread.Sleep(10);
            }

            lock (Lock)
            {
                SingletonHelper.CleanUpAfterTest();
            }
        }