200 references to InRange
IIS.FunctionalTests (1)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (5)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (6)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (4)
Microsoft.AspNetCore.HttpLogging.Tests (6)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\CompilationAPITests.cs (5)
835Assert.InRange(comp.GetDiagnostics().Count(), 0, int.MaxValue);
836Assert.InRange(comp.GetDeclarationDiagnostics().Count(), 0, int.MaxValue);
889Assert.InRange(comp.GetDiagnostics().Count(), 0, int.MaxValue);
899Assert.InRange(comp.GetDiagnostics().Count(), 0, int.MaxValue);
907Assert.InRange(error.Count(), 1, int.MaxValue);
SymbolDisplay\SymbolDisplayTests.cs (4)
6966Assert.InRange(EnumField.Comparer.Compare(lhs, rhs), 1, int.MaxValue);
6970Assert.InRange(EnumField.Comparer.Compare(lhs, rhs), 1, int.MaxValue);
6974Assert.InRange(EnumField.Comparer.Compare(lhs, rhs), int.MinValue, -1);
6978Assert.InRange(EnumField.Comparer.Compare(lhs, rhs), 1, int.MaxValue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (8)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (5)
538Assert.InRange(set.EnsureCapacity(requestedCapacity), requestedCapacity, int.MaxValue);
597Assert.InRange(set.EnsureCapacity(setLength - 1), setLength, int.MaxValue);
612Assert.InRange(newCapacity, currentCapacity * 2, int.MaxValue);
665Assert.InRange(c.EqualsCalls, 1, int.MaxValue);
666Assert.InRange(c.GetHashCodeCalls, 1, int.MaxValue);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.DotNet.XUnitAssert.Tests (7)
RangeAssertsTests.cs (7)
17 var ex = Record.Exception(() => Assert.InRange(1.50, .75, 1.25));
31 Assert.InRange(1.0, .75, 1.25);
37 var ex = Record.Exception(() => Assert.InRange(0, 1, 2));
51 var ex = Record.Exception(() => Assert.InRange(2, 0, 1));
65 Assert.InRange(2, 1, 3);
71 var ex = Record.Exception(() => Assert.InRange("adam", "bob", "scott"));
85 Assert.InRange("bob", "adam", "scott");
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.IntegrationTests (21)
Common.cs (19)
168Assert.InRange(metrics.AreaUnderRocCurve, 0, 1);
169Assert.InRange(metrics.DetectionRateAtFalsePositiveCount, 0, 1);
178Assert.InRange(metrics.Accuracy, 0, 1);
179Assert.InRange(metrics.AreaUnderRocCurve, 0, 1);
180Assert.InRange(metrics.AreaUnderPrecisionRecallCurve, 0, 1);
181Assert.InRange(metrics.F1Score, 0, 1);
182Assert.InRange(metrics.NegativePrecision, 0, 1);
183Assert.InRange(metrics.NegativeRecall, 0, 1);
184Assert.InRange(metrics.PositivePrecision, 0, 1);
185Assert.InRange(metrics.PositiveRecall, 0, 1);
198Assert.InRange(metrics.Entropy, double.NegativeInfinity, 1);
199Assert.InRange(metrics.LogLoss, double.NegativeInfinity, 1);
200Assert.InRange(metrics.LogLossReduction, double.NegativeInfinity, 100);
226Assert.InRange(metrics.MacroAccuracy, 0, 1);
227Assert.InRange(metrics.MicroAccuracy, 0, 1);
229Assert.InRange(metrics.TopKAccuracy, 0, 1);
246Assert.InRange(precision, 0, 1);
249Assert.InRange(recall, 0, 1);
262Assert.InRange(ndcg, 0, 100);
Microsoft.ML.OnnxTransformerTest (8)
Microsoft.ML.Sweeper.Tests (10)
TestSweeper.cs (10)
114Assert.InRange(val, 10, 20);
119Assert.InRange(val, 100, 200);
413Assert.InRange(val, 1, 5);
418Assert.InRange(val, 1, 1000);
573Assert.InRange(val, 1, 5);
578Assert.InRange(val, 1, 1000);
621Assert.InRange(val, 1, 5);
626Assert.InRange(val, 1, 1000);
672Assert.InRange(val, 1, 5);
677Assert.InRange(val, 1, 1000);
Microsoft.ML.TensorFlow.Tests (16)
TensorflowTests.cs (16)
730Assert.InRange(metrics.MicroAccuracy, expectedMicroAccuracy, 1);
731Assert.InRange(metrics.MacroAccuracy, expectedMacroAccruacy, 1);
852Assert.InRange(metrics.MicroAccuracy, expectedMicroAccuracy - 0.1, expectedMicroAccuracy + 0.1);
853Assert.InRange(metrics.MacroAccuracy, expectedMacroAccuracy - 0.1, expectedMacroAccuracy + 0.1);
1299Assert.InRange(prediction.Prediction[1], 0.650032759 - 0.01, 0.650032759 + 0.01);
1436Assert.InRange(metrics.MicroAccuracy, 0.8, 1);
1437Assert.InRange(metrics.MacroAccuracy, 0.8, 1);
1539Assert.InRange(metrics.MicroAccuracy, 0.8, 1);
1540Assert.InRange(metrics.MacroAccuracy, 0.8, 1);
1698Assert.InRange(metrics.MicroAccuracy, 0.8, 1);
1699Assert.InRange(metrics.MacroAccuracy, 0.8, 1);
1828Assert.InRange(metrics.MicroAccuracy, 0.8, 1);
1829Assert.InRange(metrics.MacroAccuracy, 0.8, 1);
1832Assert.InRange(lastEpoch, 1, 49);
1901Assert.InRange(metrics.MicroAccuracy, 0.3, 1);
1902Assert.InRange(metrics.MacroAccuracy, 0.3, 1);
Microsoft.ML.Tests (42)
AnomalyDetectionTests.cs (10)
168Assert.InRange(results[i].Score, 0, 0.5);
173Assert.InRange(results[7].Score, 0.5, 1);
210Assert.InRange(results[0].Score, 0.3, 1);
213Assert.InRange(results[1].Score, 0, 0.3);
216Assert.InRange(results[2].Score, 0, 0.3);
219Assert.InRange(results[3].Score, 0.3, 1);
223Assert.InRange(results[4].Score, 0, 0.3);
227Assert.InRange(results[5].Score, 0, 0.3);
230Assert.InRange(results[6].Score, 0, 0.3);
234Assert.InRange(results[7].Score, 0.3, 1);
TrainerEstimators\FAFMEstimator.cs (6)
34Assert.InRange(metrics.Accuracy, 0.6, 1);
35Assert.InRange(metrics.AreaUnderRocCurve, 0.7, 1);
36Assert.InRange(metrics.AreaUnderPrecisionRecallCurve, 0.65, 1);
60Assert.InRange(metrics.Accuracy, 0.9, 1);
61Assert.InRange(metrics.AreaUnderRocCurve, 0.9, 1);
62Assert.InRange(metrics.AreaUnderPrecisionRecallCurve, 0.9, 1);
TrainerEstimators\MatrixFactorizationTests.cs (6)
138Assert.InRange(metrices.MeanSquaredError, expectedLinuxMeanSquaredError - linuxTolerance, expectedLinuxMeanSquaredError + linuxTolerance);
144Assert.InRange(metrices.MeanSquaredError, expectedMacMeanSquaredError - windowsAndMacTolerance, expectedMacMeanSquaredError + windowsAndMacTolerance);
150Assert.InRange(metrices.MeanSquaredError, expectedWindowsMeanSquaredError - windowsAndMacTolerance, expectedWindowsMeanSquaredError + windowsAndMacTolerance);
362Assert.InRange(metrics.MeanSquaredError, 0, 0.1);
475Assert.InRange(metrics.MeanSquaredError, 0, 0.0016);
619Assert.InRange(metrics.MeanSquaredError, 0, 0.0016);
TrainerEstimators\SdcaTests.cs (8)
85Assert.InRange(metrics.AreaUnderRocCurve, 0.9, 1);
86Assert.InRange(metrics.LogLoss, 0, 0.5);
97Assert.InRange(first.Probability, 0.8, 1);
245Assert.InRange(metrics.AreaUnderRocCurve, 0.9, 1);
288Assert.InRange(metrics.TopKAccuracy, 0.8, 1);
289Assert.InRange(metrics.LogLoss, 0, 0.5);
322Assert.InRange(metrics.TopKAccuracy, 0.8, 1);
323Assert.InRange(metrics.MacroAccuracy, 0.8, 1);
TrainerEstimators\TrainerEstimators.cs (7)
110Assert.InRange(metrics.Accuracy, 0.8, 1);
111Assert.InRange(metrics.AreaUnderRocCurve, 0.9, 1);
112Assert.InRange(metrics.LogLoss, 0, 0.6);
141Assert.InRange(metrics.Accuracy, 0.7, 1);
142Assert.InRange(metrics.AreaUnderRocCurve, 0.9, 1);
182Assert.InRange(metrics.Accuracy, 0.7, 1);
183Assert.InRange(metrics.AreaUnderRocCurve, 0.9, 1);
Sockets.FunctionalTests (2)
System.Drawing.Common.Tests (1)
System.Windows.Forms.Tests (9)