22 instantiations of BooleanMetric
Microsoft.Extensions.AI.Evaluation.Integration.Tests (15)
ResultsTests.cs (15)
160var metricA = new BooleanMetric("Metric with value false", false);
161var metricB = new BooleanMetric("Metric with value true", true);
162var metricC = new BooleanMetric("Metric without value");
163var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason");
188var metricA = new BooleanMetric("Metric with value false", false);
189var metricB = new BooleanMetric("Metric with value true", true);
190var metricC = new BooleanMetric("Metric without value");
191var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason");
422var metric1 = new BooleanMetric("Metric with all diagnostic severities");
430var metric2 = new BooleanMetric("Metric with warning and informational diagnostics");
475var metric1 = new BooleanMetric("Metric with all diagnostic severities");
483var metric2 = new BooleanMetric("Metric with warning and informational diagnostics");
534var metric1 = new BooleanMetric("Metric with all diagnostic severities", value: true);
542var metric2 = new BooleanMetric("Metric with warning and informational diagnostics", value: true);
593var metric = new BooleanMetric("Condition", true);
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Evaluation.Tests (1)
77 references to BooleanMetric
Microsoft.Extensions.AI.Evaluation (4)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (47)
ResultsTests.cs (17)
47case BooleanMetric booleanMetric:
110(m is BooleanMetric b && b.Value is not null) ||
160var metricA = new BooleanMetric("Metric with value false", false);
161var metricB = new BooleanMetric("Metric with value true", true);
162var metricC = new BooleanMetric("Metric without value");
163var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason");
188var metricA = new BooleanMetric("Metric with value false", false);
189var metricB = new BooleanMetric("Metric with value true", true);
190var metricC = new BooleanMetric("Metric without value");
191var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason");
422var metric1 = new BooleanMetric("Metric with all diagnostic severities");
430var metric2 = new BooleanMetric("Metric with warning and informational diagnostics");
475var metric1 = new BooleanMetric("Metric with all diagnostic severities");
483var metric2 = new BooleanMetric("Metric with warning and informational diagnostics");
534var metric1 = new BooleanMetric("Metric with all diagnostic severities", value: true);
542var metric2 = new BooleanMetric("Metric with warning and informational diagnostics", value: true);
593var metric = new BooleanMetric("Condition", true);
SafetyEvaluatorTests.cs (28)
216Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedMaterialMetricName, out BooleanMetric? _));
218Assert.True(result.TryGet(UngroundedAttributesEvaluator.UngroundedAttributesMetricName, out BooleanMetric? ungroundedAttributes));
219Assert.True(result.TryGet(IndirectAttackEvaluator.IndirectAttackMetricName, out BooleanMetric? _));
307Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedMaterialMetricName, out BooleanMetric? _));
309Assert.True(result.TryGet(UngroundedAttributesEvaluator.UngroundedAttributesMetricName, out BooleanMetric? ungroundedAttributes));
310Assert.True(result.TryGet(IndirectAttackEvaluator.IndirectAttackMetricName, out BooleanMetric? _));
352Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedMaterialMetricName, out BooleanMetric? _));
353Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedArtworkMetricName, out BooleanMetric? _));
354Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedFictionalCharactersMetricName, out BooleanMetric? _));
355Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedLogosAndBrandsMetricName, out BooleanMetric? _));
356Assert.True(result.TryGet(IndirectAttackEvaluator.IndirectAttackMetricName, out BooleanMetric? _));
388Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedMaterialMetricName, out BooleanMetric? _));
389Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedArtworkMetricName, out BooleanMetric? _));
390Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedFictionalCharactersMetricName, out BooleanMetric? _));
391Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedLogosAndBrandsMetricName, out BooleanMetric? _));
392Assert.True(result.TryGet(IndirectAttackEvaluator.IndirectAttackMetricName, out BooleanMetric? _));
437Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedMaterialMetricName, out BooleanMetric? _));
438Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedArtworkMetricName, out BooleanMetric? _));
439Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedFictionalCharactersMetricName, out BooleanMetric? _));
440Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedLogosAndBrandsMetricName, out BooleanMetric? _));
441Assert.True(result.TryGet(IndirectAttackEvaluator.IndirectAttackMetricName, out BooleanMetric? _));
499Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedMaterialMetricName, out BooleanMetric? _));
500Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedArtworkMetricName, out BooleanMetric? _));
501Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedFictionalCharactersMetricName, out BooleanMetric? _));
502Assert.True(result.TryGet(ProtectedMaterialEvaluator.ProtectedLogosAndBrandsMetricName, out BooleanMetric? _));
503Assert.True(result.TryGet(IndirectAttackEvaluator.IndirectAttackMetricName, out BooleanMetric? _));
532Assert.True(result.TryGet(CodeVulnerabilityEvaluator.CodeVulnerabilityMetricName, out BooleanMetric? _));
573Assert.True(result.TryGet(CodeVulnerabilityEvaluator.CodeVulnerabilityMetricName, out BooleanMetric? _));
Microsoft.Extensions.AI.Evaluation.Quality (5)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (7)
Microsoft.Extensions.AI.Evaluation.Safety (13)
Microsoft.Extensions.AI.Evaluation.Tests (1)