Adding some logging for test failure investigation

This commit is contained in:
Praburaj 2014-05-22 12:17:44 -07:00
parent 273c252db0
commit 523ac1c091
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ namespace E2ETests
//Request to base address and check if various parts of the body are rendered
var response = httpClient.GetAsync(string.Empty).Result;
var responseContent = response.Content.ReadAsStringAsync().Result;
Console.WriteLine("Response from the server: {0}", responseContent);
Assert.Equal<HttpStatusCode>(HttpStatusCode.OK, response.StatusCode);
Assert.Contains("ASP.NET MVC Music Store", responseContent, StringComparison.OrdinalIgnoreCase);
Assert.Contains("Register", responseContent, StringComparison.OrdinalIgnoreCase);