Fix test case so it works cross plat.

- This just happened to be working on Windows. Newlines!
This commit is contained in:
N. Taylor Mullen 2016-11-21 14:52:52 -08:00
parent 6c8ef157b4
commit d0e1b810c4
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution
var initialError = new RazorError("Initial test error", SourceLocation.Zero, length: 1);
var expectedRewritingError = new RazorError(
LegacyResources.FormatTagHelpersParseTreeRewriter_FoundMalformedTagHelper("form"),
new SourceLocation(Environment.NewLine.Length + 32, 2, 0),
new SourceLocation(Environment.NewLine.Length * 2 + 30, 2, 1),
length: 4);
var erroredOriginalTree = RazorSyntaxTree.Create(originalTree.Root, new[] { initialError });