Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Reacting to diagnostics error page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm committed Apr 2, 2015
1 parent 833cb1e commit 6058ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Microsoft.AspNet.Mvc.FunctionalTests/ErrorPageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public class ErrorPageTests
private readonly Assembly _resourcesAssembly = typeof(ErrorPageTests).GetTypeInfo().Assembly;

[Theory]
[InlineData("CompilationFailure", "/Views/ErrorPageMiddleware/CompilationFailure.cshtml(2,16): error CS0029:" +
" Cannot implicitly convert type 'int' to 'string'")]
[InlineData("CompilationFailure", "Cannot implicitly convert type 'int' to 'string'")]
[InlineData("ParserError", "The code block is missing a closing "}" character. Make sure you " +
"have a matching "}" character for all the "{" characters " +
"within this block, and that none of the "}" characters are being " +
Expand All @@ -45,6 +44,7 @@ public async Task CompilationFailuresAreListedByErrorPageMiddleware(string actio
Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
Assert.Equal(expectedMediaType, response.Content.Headers.ContentType);
var content = await response.Content.ReadAsStringAsync();
Assert.Contains($"/Views/ErrorPageMiddleware/{action}.cshtml", content);
Assert.Contains(expected, content);
}
}
Expand Down

0 comments on commit 6058ad0

Please sign in to comment.