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