Reacting to diagnostics error page changes

This commit is contained in:
Pranav K 2015-04-02 12:18:18 -07:00
parent 833cb1e820
commit 6058ad084e
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
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 " +
@ -45,6 +44,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
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);
}
}