protected override void TestCleanup() { try { client.Disconnect(); } catch (Exception ex) { BaseTestSite.Log.Add(LogEntryKind.Debug, "Unexpected exception when disconnect client: {0}", ex.ToString()); } client.Dispose(); base.TestCleanup(); }
protected override void TestCleanup() { if (secondClient != null) { try { secondClient.Disconnect(); } catch (System.Exception ex) { BaseTestSite.Log.Add(LogEntryKind.Debug, "Unexpected exception when disconnect second client: {0}", ex.ToString()); } secondClient.Dispose(); } base.TestCleanup(); }