コード例 #1
0
 public void UrlConstructorTest()
 {
     var exception = new SolrConnectionException(innerException, url);
     Assert.IsInstanceOfType<WebException>(exception.InnerException);
     Assert.AreEqual(innerExceptionMessage, exception.Message);
     Assert.AreEqual(url, exception.Url);
 }
コード例 #2
0
 public void HttpStatusCodeConstructorTest()
 {
     var exception = new SolrConnectionException(message, innerException, url, solrErrorStatus);
     Assert.IsInstanceOfType<WebException>(exception.InnerException);
     Assert.AreEqual(message, exception.Message);
     Assert.AreEqual(url, exception.Url);
     Assert.AreEqual(solrErrorStatus, exception.SolrHttpStatusCode);
 }
コード例 #3
0
 public void MessageConstructorTest()
 {
     var exception = new SolrConnectionException(message);
     Assert.AreEqual(message, exception.Message);
 }