Actually verify classified spans (#2575)

This commit is contained in:
Ajay Bhargav Baaskaran 2018-09-10 10:48:47 -07:00 committed by GitHub
parent 3bcfa1c87a
commit 96709c4d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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);