public void GetOperatorSelectionURLShouldHandleHttpRequestException() { _restClient.NextException = new System.Net.Http.HttpRequestException("This is the message"); Assert.ThrowsAsync <MobileConnectEndpointHttpException>(() => _discovery.GetOperatorSelectionURLAsync(_config, REDIRECT_URL)); }