28 references to ContainsDiagnostics
Microsoft.Extensions.AI.Evaluation.Integration.Tests (27)
AgentQualityEvaluatorTests.cs (3)
99
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
132
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
195
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
NLPEvaluatorTests.cs (3)
61
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
88
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
114
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
QualityEvaluatorTests.cs (2)
98
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
139
result.
ContainsDiagnostics
(d => d.Severity >= EvaluationDiagnosticSeverity.Warning),
ResultsTests.cs (10)
177
Assert.False(result.
ContainsDiagnostics
());
208
Assert.False(result.
ContainsDiagnostics
());
264
Assert.False(result.
ContainsDiagnostics
());
332
Assert.False(result.
ContainsDiagnostics
());
368
Assert.False(result.
ContainsDiagnostics
());
411
Assert.False(result.
ContainsDiagnostics
());
464
Assert.True(result.
ContainsDiagnostics
());
523
Assert.True(result.
ContainsDiagnostics
());
582
Assert.True(result.
ContainsDiagnostics
());
603
Assert.True(result.
ContainsDiagnostics
(d => d.Severity == EvaluationDiagnosticSeverity.Error));
SafetyEvaluatorTests.cs (9)
213
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
304
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
349
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
385
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
434
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
496
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
531
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
572
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
606
result.
ContainsDiagnostics
(d => d.Severity is EvaluationDiagnosticSeverity.Error),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
ScenarioRunResultExtensions.cs (1)
35
return result.EvaluationResult.
ContainsDiagnostics
(predicate);