diff --git a/src/Microsoft.AspNetCore.Mvc.Razor/RazorPage.cs b/src/Microsoft.AspNetCore.Mvc.Razor/RazorPage.cs
index 9cb1efae46..4c220f1799 100644
--- a/src/Microsoft.AspNetCore.Mvc.Razor/RazorPage.cs
+++ b/src/Microsoft.AspNetCore.Mvc.Razor/RazorPage.cs
@@ -35,24 +35,6 @@ namespace Microsoft.AspNetCore.Mvc.Razor
/// Returns null if is null.
public ITempDataDictionary TempData => ViewContext?.TempData;
- ///
- /// Format an error message about using an indexer when the tag helper property is null.
- ///
- /// Name of the HTML attribute associated with the indexer.
- /// Full name of the tag helper .
- /// Dictionary property in the tag helper.
- /// An error message about using an indexer when the tag helper property is null.
- public static string InvalidTagHelperIndexerAssignment(
- string attributeName,
- string tagHelperTypeName,
- string propertyName)
- {
- return Resources.FormatRazorPage_InvalidTagHelperIndexerAssignment(
- attributeName,
- tagHelperTypeName,
- propertyName);
- }
-
///
/// In a Razor layout page, renders the portion of a content page that is not within a named section.
///
diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/RazorPagesTest.cs b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/RazorPagesTest.cs
index 887034fb4c..6e1ff83365 100644
--- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/RazorPagesTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/RazorPagesTest.cs
@@ -47,7 +47,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
var content = await response.Content.ReadAsStringAsync();
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
- Assert.Equal("Post title", content.Trim());
+ Assert.StartsWith("Post title", content.Trim());
}
[Fact]
diff --git a/test/WebSites/RazorPagesWebSite/TagHelpers.cshtml b/test/WebSites/RazorPagesWebSite/TagHelpers.cshtml
index 4dcf571286..91fa0dd6b1 100644
--- a/test/WebSites/RazorPagesWebSite/TagHelpers.cshtml
+++ b/test/WebSites/RazorPagesWebSite/TagHelpers.cshtml
@@ -1,9 +1,6 @@
@page
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
-
-
@functions {
public class Post
{
@@ -14,3 +11,6 @@
}
@post.Title
+
+