summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId.Test/UI
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenId.Test/UI')
-rw-r--r--src/DotNetOpenId.Test/UI/IdentityEndpointTest.cs2
-rw-r--r--src/DotNetOpenId.Test/UI/WebControlTesting.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenId.Test/UI/IdentityEndpointTest.cs b/src/DotNetOpenId.Test/UI/IdentityEndpointTest.cs
index 2ad2960..89ec02a 100644
--- a/src/DotNetOpenId.Test/UI/IdentityEndpointTest.cs
+++ b/src/DotNetOpenId.Test/UI/IdentityEndpointTest.cs
@@ -17,7 +17,7 @@ namespace DotNetOpenId.Test.UI {
TestSupport.Scenarios scenario = TestSupport.Scenarios.AutoApproval;
Identifier identityUrl = TestSupport.GetIdentityUrl(scenario, version);
string html = UITestSupport.Host.ProcessRequest(identityUrl);
- Trace.TraceInformation("{0} response:{1}{2}", identityUrl, Environment.NewLine, html);
+ TestSupport.Logger.InfoFormat("{0} response:{1}{2}", identityUrl, Environment.NewLine, html);
Assert.IsTrue(Regex.IsMatch(html, string.Format(CultureInfo.InvariantCulture,
@"\<link rel=""{1}"" href=""http://[^/]+/{0}""\>\</link\>",
Regex.Escape(TestSupport.ProviderPage),
diff --git a/src/DotNetOpenId.Test/UI/WebControlTesting.cs b/src/DotNetOpenId.Test/UI/WebControlTesting.cs
index 08afecf..2ec010f 100644
--- a/src/DotNetOpenId.Test/UI/WebControlTesting.cs
+++ b/src/DotNetOpenId.Test/UI/WebControlTesting.cs
@@ -58,10 +58,10 @@ namespace DotNetOpenId.Test.UI {
redirectUrl = new Uri(providerResponse.Headers[HttpResponseHeader.Location]);
}
} catch (WebException ex) {
- Trace.WriteLine(ex);
+ TestSupport.Logger.Error("WebException", ex);
if (ex.Response != null) {
using (StreamReader sr = new StreamReader(ex.Response.GetResponseStream())) {
- Trace.WriteLine(sr.ReadToEnd());
+ TestSupport.Logger.ErrorFormat("Response stream follows: {0}", sr.ReadToEnd());
}
}
throw;