Update additional tests to account for new error lengths.
This commit is contained in:
parent
076ce6a8a1
commit
9169a156e2
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue