From 6058ad084e33428851657d6d7f16e1ebcc976df9 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 2 Apr 2015 12:18:18 -0700 Subject: [PATCH] Reacting to diagnostics error page changes --- test/Microsoft.AspNet.Mvc.FunctionalTests/ErrorPageTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/ErrorPageTests.cs b/test/Microsoft.AspNet.Mvc.FunctionalTests/ErrorPageTests.cs index 59becc0d41..258cc6469c 100644 --- a/test/Microsoft.AspNet.Mvc.FunctionalTests/ErrorPageTests.cs +++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/ErrorPageTests.cs @@ -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); } }