public void DisposeTest() { Connecter target = new Connecter(); // TODO: 初始化为适当的值 target.Dispose(); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="eventArgs"></param> private void DomainWorld_ExitWorld(object sender, BaseWorldEventArgs eventArgs) { m_Connecter.Dispose(); m_Listener.Dispose(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="eventArgs"></param> private void ZoneClusterExitWorld(object sender, BaseWorldEventArgs eventArgs) { m_Connecter.Dispose(); m_Listener.Dispose(); }