public void DetachClient(IAutoTestClient client) { if (client == this.client) { this.client = null; currentSession?.Dispose(); currentSession = null; } else { throw new InvalidOperationException("Not connected"); } }
public void DetachClient(IAutoTestClient client) { if (client == this.client) { this.client = null; currentSession?.Dispose(); currentSession = null; } else { throw new InvalidOperationException("Not connected"); } }