예제 #1
0
 public ConfigServerCheckFailed(
     ConfigFetcher.Urls urls, string headerName, string expectedValue, Option <string> actual
     ) : base(
         urls, $"Expected header '{headerName}' to be '{expectedValue}', but it was {actual}"
         )
 {
 }
예제 #2
0
        public void TestToString()
        {
            var urls = new ConfigFetcher.Urls(new Uri("http://fetch.url"), new Uri("http://report.url"));
            var str  = urls.ToString();

            str.shouldInclude(urls.reportUrl.ToString());
            str.shouldNotInclude(urls.fetchUrl.ToString());
        }
예제 #3
0
 public ConfigWrongContentType(ConfigFetcher.Urls urls, string expectedContentType, string actualContentType)
     : base(
         urls, $"Expected 'Content-Type' to be '{expectedContentType}', but it was '{actualContentType}'"
         )
 {
     this.expectedContentType = expectedContentType;
     this.actualContentType   = actualContentType;
 }
예제 #4
0
 protected ConfigFetchError(ConfigFetcher.Urls urls, string message)
 {
     this.message = message;
     this.urls    = urls;
 }
예제 #5
0
 public ConfigWWWError(ConfigFetcher.Urls urls, WWWWithHeaders wwwWithHeaders)
     : base(urls, $"WWW error: {wwwWithHeaders.www.error}")
 {
     this.wwwWithHeaders = wwwWithHeaders;
 }
예제 #6
0
 public ConfigTimeoutError(ConfigFetcher.Urls urls, Duration timeout)
     : base(urls, $"Timed out: {timeout}")
 {
     this.timeout = timeout;
 }