diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.Test/Hosting/HostingTests.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs b/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs index b7e04f7..4e0f618 100644 --- a/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs +++ b/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs @@ -30,7 +30,16 @@ namespace DotNetOpenAuth.Test.Hosting { } } } catch (FileNotFoundException ex) { - Assert.Inconclusive("Unable to execute hosted ASP.NET tests because {0} could not be found. {1}", ex.FileName, ex.FusionLog); + Assert.Inconclusive( + "Unable to execute hosted ASP.NET tests because {0} could not be found. {1}", ex.FileName, ex.FusionLog); + } catch (WebException ex) { + if (ex.Response != null) { + using (var responseStream = new StreamReader(ex.Response.GetResponseStream())) { + Console.WriteLine(responseStream.ReadToEnd()); + } + } + + throw; } } } |