Reacting to diagnostics error page changes
This commit is contained in:
parent
833cb1e820
commit
6058ad084e
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue