Update additional tests to account for new error lengths.

This commit is contained in:
N. Taylor Mullen 2015-09-03 15:20:14 -07:00
parent 076ce6a8a1
commit 9169a156e2
2 changed files with 10 additions and 5 deletions

View File

@ -207,7 +207,7 @@ namespace Microsoft.AspNet.Mvc.Razor
new RazorError(
"The 'inherits' keyword is not allowed when a 'model' keyword is used.",
PlatformNormalizer.NormalizedSourceLocation(21, 1, 9),
1)
length: 8)
};
// Act
@ -251,8 +251,10 @@ namespace Microsoft.AspNet.Mvc.Razor
var expectedErrors = new[]
{
new RazorError("The 'inherits' keyword is not allowed when a 'model' keyword is used.",
new SourceLocation(9, 0, 9), 1)
new RazorError(
"The 'inherits' keyword is not allowed when a 'model' keyword is used.",
new SourceLocation(9, 0, 9),
length: 8)
};
// Act

View File

@ -237,7 +237,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Host.Test
new RazorError(
"The 'inherits' keyword is not allowed when a 'model' keyword is used.",
PlatformNormalizer.NormalizedSourceLocation(21, 1, 9),
1)
length: 8)
};
expectedSpans.Zip(spans, (exp, span) => new { expected = exp, span = span }).ToList().ForEach(i => Assert.Equal(i.expected, i.span));
Assert.Equal(expectedSpans, spans.ToArray());
@ -279,7 +279,10 @@ namespace Microsoft.AspNet.Mvc.Razor.Host.Test
var expectedErrors = new[]
{
new RazorError("The 'inherits' keyword is not allowed when a 'model' keyword is used.", new SourceLocation(9, 0, 9), 1)
new RazorError(
"The 'inherits' keyword is not allowed when a 'model' keyword is used.",
new SourceLocation(9, 0, 9),
length: 8)
};
expectedSpans.Zip(spans, (exp, span) => new { expected = exp, span = span }).ToList().ForEach(i => Assert.Equal(i.expected, i.span));
Assert.Equal(expectedSpans, spans.ToArray());