Skip to content

Commit e3cc646

Browse files
committed
Don't require line pragmas to match source mappings
1 parent 9200346 commit e3cc646

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorBaselineIntegrationTestBase.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,8 @@ protected void AssertLinePragmas(RazorCodeDocument codeDocument)
208208
}
209209
}
210210

211-
// check that the pragmas in the main document have matching span maps and are enhanced
212-
var pragmasInDocument = linePragmas.Where(p => p.FilePath == codeDocument.Source.FilePath).ToArray();
213-
214-
foreach(var pragma in pragmasInDocument)
215-
{
216-
Assert.True(pragma.IsEnhanced);
217-
}
218-
219-
Assert.Equal(pragmasInDocument.Length, csharpDocument.SourceMappings.Length);
211+
// check that the pragmas in the main document are enhanced
212+
Assert.All(linePragmas.Where(p => p.FilePath == codeDocument.Source.FilePath), p => Assert.True(p.IsEnhanced));
220213
}
221214
}
222215

0 commit comments

Comments
 (0)