diff --git a/src/Features/Lsif/GeneratorTest/RangeResultSetTests.vb b/src/Features/Lsif/GeneratorTest/RangeResultSetTests.vb index b327ac25f6eb32797e3316f39412867de5c68244..ca7ba6bbd1eb9ad6793ad5bbe47da7ea0af53069 100644 --- a/src/Features/Lsif/GeneratorTest/RangeResultSetTests.vb +++ b/src/Features/Lsif/GeneratorTest/RangeResultSetTests.vb @@ -13,9 +13,9 @@ Namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests - - - + + + ", WellKnownSymbolMonikerSchemes.DotnetNamespace)> @@ -49,7 +49,9 @@ Namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests <%= code %> + ReferencedWithAlias + )) Assert.Empty(lsif.Vertices.OfType(Of Range)) diff --git a/src/Features/Lsif/GeneratorTest/Utilities/TestLsifOutput.vb b/src/Features/Lsif/GeneratorTest/Utilities/TestLsifOutput.vb index 3ffa078261671277c8069c108c8084ee5a696681..89c2ec013f09bbf60604acb2ade1483a7bcc3688 100644 --- a/src/Features/Lsif/GeneratorTest/Utilities/TestLsifOutput.vb +++ b/src/Features/Lsif/GeneratorTest/Utilities/TestLsifOutput.vb @@ -30,6 +30,10 @@ Namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests.U For Each project In workspace.CurrentSolution.Projects Dim compilation = Await project.GetCompilationAsync() + + ' Assert we don't have any errors to prevent any typos in the tests + Assert.Empty(compilation.GetDiagnostics().Where(Function(d) d.Severity = DiagnosticSeverity.Error)) + generator.GenerateForCompilation(compilation, project.FilePath, project.LanguageServices) Next End Function