示例#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;
        }