public void TearDown() { if (_commHandler != null && _commHandler.GetWasShutdown()) { _commHandler.Close(); } _commHandler = null; if (_client != null) { if (_client.Client != null && _client.Connected) { _client.Close(); } _client = null; } }
public void SetUp() { _commHandler = new CommHandlerChildForTests(); }