diff --git a/test/Microsoft.AspNetCore.Razor.Test.Common/Language/Legacy/ParserTestBase.cs b/test/Microsoft.AspNetCore.Razor.Test.Common/Language/Legacy/ParserTestBase.cs index ff140b8489..67a77b0df5 100644 --- a/test/Microsoft.AspNetCore.Razor.Test.Common/Language/Legacy/ParserTestBase.cs +++ b/test/Microsoft.AspNetCore.Razor.Test.Common/Language/Legacy/ParserTestBase.cs @@ -179,6 +179,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy { throw new XunitException($"The resource {baselineClassifiedSpansFileName} was not found."); } + else + { + var classifiedSpanBaseline = classifiedSpanFile.ReadAllText().Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); + ClassifiedSpanVerifier.Verify(root, filePath, classifiedSpanBaseline); + } // Verify tag helper spans var tagHelperSpanFile = TestFile.Create(baselineTagHelperSpansFileName, GetType().GetTypeInfo().Assembly);