From 715aa9bcae39385ae7cf4173347b4a548976d03e Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Thu, 20 Apr 2017 13:33:00 -0700 Subject: [PATCH] Fix cross plat tests for TagHelperBinderSyntaxTreePassTest. --- .../TagHelperBinderSyntaxTreePassTest.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TagHelperBinderSyntaxTreePassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/TagHelperBinderSyntaxTreePassTest.cs index 82033d21ba..0be0a62438 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TagHelperBinderSyntaxTreePassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TagHelperBinderSyntaxTreePassTest.cs @@ -31,12 +31,12 @@ namespace Microsoft.AspNetCore.Razor.Language RazorDiagnostic.Create( new RazorError( LegacyResources.ParseError_Unterminated_String_Literal, - new SourceLocation(16, 1, 14), + new SourceLocation(14 + Environment.NewLine.Length, 1, 14), length: 1)), RazorDiagnostic.Create( new RazorError( Resources.FormatInvalidTagHelperLookupText("\""), - new SourceLocation(16, 1, 14), + new SourceLocation(14 + Environment.NewLine.Length, 1, 14), length: 1)) }; @@ -73,12 +73,12 @@ namespace Microsoft.AspNetCore.Razor.Language RazorDiagnostic.Create( new RazorError( LegacyResources.ParseError_Unterminated_String_Literal, - new SourceLocation(19, 1, 17), + new SourceLocation(17 + Environment.NewLine.Length, 1, 17), length: 1)), RazorDiagnostic.Create( new RazorError( Resources.FormatInvalidTagHelperLookupText("\""), - new SourceLocation(19, 1, 17), + new SourceLocation(17 + Environment.NewLine.Length, 1, 17), length: 1)) }; @@ -115,12 +115,12 @@ namespace Microsoft.AspNetCore.Razor.Language RazorDiagnostic.Create( new RazorError( LegacyResources.ParseError_Unterminated_String_Literal, - new SourceLocation(19, 1, 17), + new SourceLocation(17 + Environment.NewLine.Length, 1, 17), length: 1)), RazorDiagnostic.Create( new RazorError( Resources.FormatInvalidTagHelperPrefixValue("tagHelperPrefix", "\"", "\""), - new SourceLocation(19, 1, 17), + new SourceLocation(17 + Environment.NewLine.Length, 1, 17), length: 1)) };