diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-08-06 23:18:41 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-08-06 23:18:41 -0700 |
commit | 2c380a137d1fc19d76f6c180e014de295026552b (patch) | |
tree | 411ef7fd89463350611fefa1191719a0ba647091 | |
parent | 3fc2197494753c56019f40aabbe399c4567f49b5 (diff) | |
download | DotNetOpenAuth-2c380a137d1fc19d76f6c180e014de295026552b.zip DotNetOpenAuth-2c380a137d1fc19d76f6c180e014de295026552b.tar.gz DotNetOpenAuth-2c380a137d1fc19d76f6c180e014de295026552b.tar.bz2 |
Improved error message when hosting test fails.
-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; } } } |