Пример #1
0
        // reset for each test
        private void ResetForNextTest()
        {
            ClearTest();

            WaitControlQueue = new BlockingCollection <string>(new ConcurrentQueue <string>());
            ControlChannel   = new ControlChannel(this);
        }
Пример #2
0
        // clear for each test
        private void ClearTest()
        {
            WaitControlQueue?.Clear();
            WaitControlQueue = null;

            ControlChannel?.Teardown();
            ControlChannel = null;

            InfoToServer = null;
        }