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