50 references to Diagnostics
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (49)
SourceGeneration\GeneratorDriverFuzzTests.cs (4)
327Assert.Equal(result2.Diagnostics, result1.Diagnostics, CommonDiagnosticComparer.Instance); 546Assert.Equal(result2.Diagnostics, result1.Diagnostics, CommonDiagnosticComparer.Instance);
SourceGeneration\GeneratorDriverTests.cs (22)
549Assert.Empty(results.Diagnostics); 562Assert.Empty(results.Diagnostics); 595Assert.Empty(results.Diagnostics); 627Assert.Empty(results.Diagnostics); 679Assert.Equal(3, results.Diagnostics.Length); 688Assert.Equal(results.Diagnostics[0], result1.Diagnostics[0]); 689Assert.Equal(results.Diagnostics[1], result1.Diagnostics[1]); 694Assert.Equal(results.Diagnostics[2], result2.Diagnostics[0]); 725Assert.Equal(3, results.Diagnostics.Length); 727AssertEx.Equal(results.Diagnostics, fullDiagnostics); 1071Assert.Empty(results.Diagnostics); 1101Assert.Empty(results.Diagnostics); 1454Assert.Single(runResults.Diagnostics); 1479Assert.Single(runResults.Diagnostics); 1511Assert.Empty(runResults.Diagnostics); 1523VerifyGeneratorExceptionDiagnostic<InvalidOperationException>(runResults.Diagnostics.Single(), nameof(PipelineCallbackGenerator), "abc"); 1551Assert.Single(runResults.Diagnostics); 1584Assert.Single(runResults.Diagnostics); 2571Assert.True(driver.GetRunResult().Diagnostics.IsEmpty); 2581Assert.True(driver.GetRunResult().Diagnostics.IsEmpty); 3366var diag = Assert.Single(result.Diagnostics); 3551Assert.Empty(runResult.Diagnostics);
SourceGeneration\SyntaxAwareGeneratorTests.cs (23)
386Assert.Single(results.Diagnostics); 428Assert.Single(results.Diagnostics); 518Assert.Single(results.Diagnostics); 868Assert.Empty(results.Diagnostics); 914Assert.Empty(results.Diagnostics); 960Assert.Empty(results.Diagnostics); 971Assert.Empty(results.Diagnostics); 982Assert.Empty(results.Diagnostics); 1027Assert.Empty(results.Diagnostics); 1045Assert.Empty(results.Diagnostics); 1102Assert.Empty(results.Diagnostics); 1126Assert.Empty(results.Diagnostics); 1235Assert.Empty(results.Diagnostics); 1261Assert.Empty(results.Diagnostics); 1322Assert.Empty(results.Diagnostics); 1332Assert.Empty(results.Diagnostics); 1345Assert.Empty(results.Diagnostics); 1409Assert.Empty(results.Diagnostics); 1439Assert.Empty(results.Diagnostics); 1472Assert.Empty(results.Diagnostics); 1866Assert.Single(results.Diagnostics); 1907Assert.Single(results.Diagnostics); 1953Assert.Single(results.Diagnostics);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
873using var _ = ArrayBuilder<Diagnostic>.GetInstance(capacity: driverRunResult.Diagnostics.Length, out var builder);