// reset for each test private void ResetForNextTest() { ClearTest(); WaitControlQueue = new BlockingCollection <string>(new ConcurrentQueue <string>()); ControlChannel = new ControlChannel(this); }
// clear for each test private void ClearTest() { WaitControlQueue?.Clear(); WaitControlQueue = null; ControlChannel?.Teardown(); ControlChannel = null; InfoToServer = null; }