392 references to NegativeInfinity
BinaryFormatTests (2)
FormatTests\FormattedObject\ListTests.cs (1)
102
new List<double>() { 3.14, double.NaN, double.PositiveInfinity, double.
NegativeInfinity
, double.NegativeZero },
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
83
{ (byte)PrimitiveType.Double, double.
NegativeInfinity
},
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31
case double.
NegativeInfinity
:
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1176
if (s == "-INF") return Double.
NegativeInfinity
;
1191
result = Double.
NegativeInfinity
;
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
195
double d when d is double.
NegativeInfinity
=> "double.NegativeInfinity",
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
175
new object[] { "double", "double.NegativeInfinity", double.
NegativeInfinity
, true },
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
195
double d when d is double.
NegativeInfinity
=> "double.NegativeInfinity",
Microsoft.AspNetCore.Http.ValidationsGenerator (1)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
195
double d when d is double.
NegativeInfinity
=> "double.NegativeInfinity",
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94
{ double.
NegativeInfinity
, nameof(double.
NegativeInfinity
) },
Microsoft.CodeAnalysis.CSharp (4)
Binder\PatternExplainer.cs (1)
750
double.
NegativeInfinity
=> "double.NegativeInfinity",
Utilities\ValueSetFactory.DoubleTC.cs (3)
18
double INumericTC<double>.MinValue => double.
NegativeInfinity
;
42
if (value == double.
NegativeInfinity
)
92
value == double.
NegativeInfinity
? "-Inf" :
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NullableConversionTests.cs (2)
760
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.NegativeInfinity").WithArguments(double.
NegativeInfinity
.ToString(), "int").WithLocation(17, 13),
784
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.NegativeInfinity").WithArguments(double.
NegativeInfinity
.ToString(), "int").WithLocation(31, 13),
Utilities\ValueSetTests.cs (2)
350
Assert.Equal("[-Inf..-Inf]", ForDouble.Related(Equal, double.
NegativeInfinity
).ToString());
361
var mi = ForDouble.Related(Equal, double.
NegativeInfinity
);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
100
VerifySyntax<MemberAccessExpressionSyntax>(Generator.LiteralExpression(double.
NegativeInfinity
), "global::System.Double.NegativeInfinity");
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
96
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Double.
NegativeInfinity
), "Global.System.Double.NegativeInfinity")
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94
{ double.
NegativeInfinity
, nameof(double.
NegativeInfinity
) },
Microsoft.DotNet.XUnitAssert.Tests (5)
EqualityAssertsTests.cs (5)
2061
var ex = Record.Exception(() => Assert.Equal(0.0, 1.0, double.
NegativeInfinity
));
2147
var ex = Record.Exception(() => Assert.Equal(0.0, double.
NegativeInfinity
, 1.0));
2153
$"Actual: {double.
NegativeInfinity
}",
4035
var ex = Record.Exception(() => Assert.NotEqual(0.0, 1.0, double.
NegativeInfinity
));
4117
Assert.NotEqual(0.0, double.
NegativeInfinity
, 1.0);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
275
new() { X = 1, Y = double.
NegativeInfinity
, Z = 3 },
Microsoft.ML.AutoML (1)
Utils\BestResultUtil.cs (1)
140
var maxScore = double.
NegativeInfinity
;
Microsoft.ML.AutoML.Tests (1)
TunerTests.cs (1)
176
var invalidLosses = Enumerable.Repeat(new[] { double.NaN, double.
NegativeInfinity
, double.PositiveInfinity }, 100)
Microsoft.ML.Core (2)
Utilities\SummaryStatistics.cs (1)
16
Max = double.
NegativeInfinity
;
Utilities\SupervisedBinFinder.cs (1)
162
Double curValue = Double.
NegativeInfinity
;
Microsoft.ML.CpuMath (1)
ProbabilityFunctions.cs (1)
72
return Double.
NegativeInfinity
;
Microsoft.ML.Data (6)
DataLoadSave\DataOperationsCatalog.cs (1)
224
public IDataView FilterRowsByColumn(IDataView input, string columnName, double lowerBound = double.
NegativeInfinity
, double upperBound = double.PositiveInfinity)
Transforms\NormalizeColumnDbl.cs (1)
334
_max[i] = TFloat.
NegativeInfinity
;
Transforms\RangeFilter.cs (1)
124
_min = options.Min ?? Double.
NegativeInfinity
;
Utils\LossFunctions.cs (3)
172
return Double.
NegativeInfinity
;
272
return Double.
NegativeInfinity
;
396
return Double.
NegativeInfinity
;
Microsoft.ML.FastTree (18)
BinFile\BinFinder.cs (1)
142
var prev = double.
NegativeInfinity
;
Dataset\FeatureFlock.cs (4)
245
double bestShiftedGain = double.
NegativeInfinity
;
370
double bestShiftedGain = double.
NegativeInfinity
;
590
double bestShiftedGain = double.
NegativeInfinity
;
812
double bestShiftedGain = double.
NegativeInfinity
;
Training\DcgCalculator.cs (5)
196
double maxScore1 = double.
NegativeInfinity
;
197
double maxScore2 = double.
NegativeInfinity
;
198
double maxScore3 = double.
NegativeInfinity
;
245
if (maxScore2 > double.
NegativeInfinity
)
247
if (maxScore3 > double.
NegativeInfinity
)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (7)
398
BestSplitInfoPerLeaf[lteChild].Gain = double.
NegativeInfinity
;
399
BestSplitInfoPerLeaf[gtChild].Gain = double.
NegativeInfinity
;
717
double bestShiftedGain = double.
NegativeInfinity
;
1078
FeatureSplitInfo[f].Gain = double.
NegativeInfinity
;
1117
Gain = double.
NegativeInfinity
;
1191
myGain = double.
NegativeInfinity
;
1194
otherGain = double.
NegativeInfinity
;
Utils\LinqExtensions.cs (1)
254
double max = double.
NegativeInfinity
;
Microsoft.ML.IntegrationTests (3)
Common.cs (3)
198
Assert.InRange(metrics.Entropy, double.
NegativeInfinity
, 1);
199
Assert.InRange(metrics.LogLoss, double.
NegativeInfinity
, 1);
200
Assert.InRange(metrics.LogLossReduction, double.
NegativeInfinity
, 100);
Microsoft.ML.LightGbm (1)
WrappedLightGbmBooster.cs (1)
106
values.Add(double.
NegativeInfinity
);
Microsoft.ML.Predictor.Tests (1)
CompareBaselines.cs (1)
314
d = line[ich] == '-' ? double.
NegativeInfinity
: double.PositiveInfinity;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
31
Double.MaxValue, Double.Epsilon, Double.
NegativeInfinity
, Double.PositiveInfinity };
Microsoft.ML.Tests (15)
Transformers\NAIndicatorTests.cs (9)
41
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
69
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
132
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
Transformers\NAReplaceTests.cs (6)
106
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
,C= new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
164
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
,C= new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
Microsoft.ML.TimeSeries (2)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
864
Double maxTrendMagnitude = Double.
NegativeInfinity
;
865
Double maxNonTrendMagnitude = Double.
NegativeInfinity
;
Microsoft.ML.Transforms (2)
MissingValueReplacingUtils.cs (2)
824
Stat = ReturnMax ? double.
NegativeInfinity
: double.PositiveInfinity;
845
Stat = ReturnMax ? double.
NegativeInfinity
: double.PositiveInfinity;
PresentationCore (20)
System\Windows\Media\BoundsDrawingContextWalker.cs (2)
590
bounds.X = Double.
NegativeInfinity
;
591
bounds.Y = Double.
NegativeInfinity
;
System\Windows\Media\GlyphRun.cs (4)
1274
double accRight = double.
NegativeInfinity
;
1275
double accBottom = double.
NegativeInfinity
;
1441
double accRight = double.
NegativeInfinity
;
1442
double accBottom = double.
NegativeInfinity
;
System\Windows\Media\Visual.cs (8)
404
bboxSubgraph.X = Double.
NegativeInfinity
;
405
bboxSubgraph.Y = Double.
NegativeInfinity
;
599
bboxSubgraph.X = Double.
NegativeInfinity
;
600
bboxSubgraph.Y = Double.
NegativeInfinity
;
1052
_bboxSubgraph.X = Double.
NegativeInfinity
;
1053
_bboxSubgraph.Y = Double.
NegativeInfinity
;
1127
bboxSubgraph.X = Double.
NegativeInfinity
;
1128
bboxSubgraph.Y = Double.
NegativeInfinity
;
System\Windows\Media3D\Rect3D.cs (3)
602
_sizeX = Double.
NegativeInfinity
,
603
_sizeY = Double.
NegativeInfinity
,
604
_sizeZ = Double.
NegativeInfinity
System\Windows\Media3D\Size3D.cs (3)
176
_x = Double.
NegativeInfinity
,
177
_y = Double.
NegativeInfinity
,
178
_z = Double.
NegativeInfinity
PresentationCore.Tests (1)
System\Windows\Media\Animation\RepeatBehavior.Tests.cs (1)
13
[InlineData(double.
NegativeInfinity
)]
PresentationFramework (13)
System\Windows\Controls\ItemsControl.cs (2)
2984
viewPortBounds = new Rect(Double.
NegativeInfinity
, viewPortBounds.Top,
2989
viewPortBounds = new Rect(viewPortBounds.Left, Double.
NegativeInfinity
,
System\Windows\Controls\ScrollViewer.cs (5)
109
public void ScrollToLeftEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.
NegativeInfinity
, null); }
120
EnqueueCommand(Commands.SetHorizontalOffset, Double.
NegativeInfinity
, null);
121
EnqueueCommand(Commands.SetVerticalOffset, Double.
NegativeInfinity
, null);
128
EnqueueCommand(Commands.SetHorizontalOffset, Double.
NegativeInfinity
, null);
135
public void ScrollToTop() { EnqueueCommand(Commands.SetVerticalOffset, Double.
NegativeInfinity
, null); }
System\Windows\Input\KeyboardNavigation.cs (6)
3000
double resultDirectionScore = double.
NegativeInfinity
;
3001
double resultRangeScore = double.
NegativeInfinity
;
3004
double partialResultDirectionScore = double.
NegativeInfinity
;
3005
double partialResultRangeScore = double.
NegativeInfinity
;
3031
double directionScore = double.
NegativeInfinity
;
3052
double rangeScore = double.
NegativeInfinity
;
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
275
new() { X = 1, Y = double.
NegativeInfinity
, Z = 3 },
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (1)
73
return TryParseAsSpecialFloatingPoint(source, double.PositiveInfinity, double.
NegativeInfinity
, double.NaN, out value, out bytesConsumed);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventCounter.cs (3)
34
_max = double.
NegativeInfinity
;
134
_max = double.
NegativeInfinity
;
142
private const double UnusedBufferSlotValue = double.
NegativeInfinity
;
src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
218
return d ==
NegativeInfinity
;
798
static double IFloatingPointIeee754<double>.NegativeInfinity =>
NegativeInfinity
;
1715
result = int.IsOddInteger(n) ?
NegativeInfinity
: NaN;
2194
result = +sign * (long.IsOddInteger(integral) ?
NegativeInfinity
: PositiveInfinity);
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1005
return sign ? double.
NegativeInfinity
: double.PositiveInfinity;
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
1477
return Equals(vector, Create(double.
NegativeInfinity
).As<double, T>());
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
85
get => new NFloat(NativeType.
NegativeInfinity
);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (1)
1958
return Equals(vector, Create(double.
NegativeInfinity
).As<double, T>());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
2062
return Equals(vector, Create(double.
NegativeInfinity
).As<double, T>());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
2089
return Equals(vector, Create(double.
NegativeInfinity
).As<double, T>());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
1895
return Equals(vector, Create(double.
NegativeInfinity
).As<double, T>());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
951
TVectorDouble.Create(double.
NegativeInfinity
),
1271
TVectorDouble.Create(double.
NegativeInfinity
),
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
680
/// <paramref name="value"/> is <see cref="double.
NegativeInfinity
"/>
System.Private.Windows.Core.Tests (1)
System\Value\StoringDouble.cs (1)
15
{ double.
NegativeInfinity
},
System.Private.Xml (8)
System\Xml\XmlConvert.cs (2)
1009
return double.
NegativeInfinity
;
1029
result = double.
NegativeInfinity
;
System\Xml\Xsl\Runtime\XmlSortKey.cs (5)
312
_dblVal = (collation.EmptyGreatest != collation.DescendingOrder) ? double.PositiveInfinity : double.
NegativeInfinity
;
342
Debug.Assert(_dblVal == double.
NegativeInfinity
|| _dblVal == double.PositiveInfinity);
343
return (_dblVal == double.
NegativeInfinity
) ? -1 : 1;
348
Debug.Assert(that._dblVal == double.
NegativeInfinity
|| that._dblVal == double.PositiveInfinity);
349
return (that._dblVal == double.
NegativeInfinity
) ? 1 : -1;
System\Xml\Xsl\XPathConvert.cs (1)
86
return NextAfter(x, double.
NegativeInfinity
);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
1845
return double.
NegativeInfinity
;
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
846
/// <see cref="double.
NegativeInfinity
"/>) is emitted.
877
/// <see cref="double.
NegativeInfinity
"/>) for values larger than
System\Text\Json\Reader\JsonReaderHelper.cs (1)
234
value = double.
NegativeInfinity
;
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31
case double.
NegativeInfinity
:
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (2)
714
(state.InitialVelocity > 0 ? double.PositiveInfinity : double.
NegativeInfinity
);
1123
public double MinBound = double.
NegativeInfinity
;
WindowsBase.Tests (240)
System\Windows\Media\MatrixTests.cs (19)
77
yield return new object[] { double.
NegativeInfinity
, 0, 0, 1, 0, 0, true, false, double.
NegativeInfinity
};
78
yield return new object[] { 1, double.
NegativeInfinity
, 0, 1, 0, 0, true, false, double.NaN };
79
yield return new object[] { 1, 0, double.
NegativeInfinity
, 1, 0, 0, true, false, double.NaN };
80
yield return new object[] { 1, 0, 0, double.
NegativeInfinity
, 0, 0, true, false, double.
NegativeInfinity
};
81
yield return new object[] { 1, 0, 0, 1, double.
NegativeInfinity
, 0, true, false, 1 };
82
yield return new object[] { 1, 0, 0, 1, 0, double.
NegativeInfinity
, true, false, 1 };
83
yield return new object[] { double.
NegativeInfinity
, double.
NegativeInfinity
, double.
NegativeInfinity
, double.
NegativeInfinity
, double.
NegativeInfinity
, double.
NegativeInfinity
, true, false, double.NaN };
5081
yield return new object[] { matrix, double.
NegativeInfinity
, false };
5120
yield return new object[] { double.
NegativeInfinity
, false };
5161
yield return new object[] { double.
NegativeInfinity
};
5204
yield return new object[] { matrix, double.
NegativeInfinity
, false };
5243
yield return new object[] { double.
NegativeInfinity
, false };
System\Windows\PointTests.cs (12)
24
[InlineData(double.
NegativeInfinity
, double.
NegativeInfinity
)]
46
[InlineData(double.
NegativeInfinity
)]
71
[InlineData(double.
NegativeInfinity
)]
103
yield return new object[] { new Point(1.2, 2.3), double.
NegativeInfinity
, double.
NegativeInfinity
, new Point(double.
NegativeInfinity
, double.
NegativeInfinity
) };
104
yield return new object[] { new Point(1.2, 2.3), double.
NegativeInfinity
, 0.2, new Point(double.
NegativeInfinity
, 2.5) };
105
yield return new object[] { new Point(1.2, 2.3), 0.1, double.
NegativeInfinity
, new Point(1.3, double.
NegativeInfinity
) };
System\Windows\RectTests.cs (194)
70
Assert.Equal(double.
NegativeInfinity
, rect.Width);
71
Assert.Equal(double.
NegativeInfinity
, rect.Height);
74
Assert.Equal(double.
NegativeInfinity
, rect.Size.Width);
75
Assert.Equal(double.
NegativeInfinity
, rect.Size.Height);
79
Assert.Equal(double.
NegativeInfinity
, rect.TopRight.X);
81
Assert.Equal(double.
NegativeInfinity
, rect.Bottom);
83
Assert.Equal(double.
NegativeInfinity
, rect.BottomLeft.Y);
84
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.X);
85
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.Y);
91
[InlineData(double.
NegativeInfinity
, double.
NegativeInfinity
, 3, 4)]
125
[InlineData(double.
NegativeInfinity
)]
135
[InlineData(double.
NegativeInfinity
)]
158
yield return new object[] { new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), new Point(1, 2), double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity };
159
yield return new object[] { new Point(1, 2), new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity };
160
yield return new object[] { new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), double.
NegativeInfinity
, double.
NegativeInfinity
, double.NaN, double.NaN };
218
yield return new object[] { new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), new Size(double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity };
219
yield return new object[] { new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), new Size(1, 2), double.
NegativeInfinity
, double.
NegativeInfinity
, 1, 2 };
279
Assert.Equal(double.
NegativeInfinity
, rect.Width);
280
Assert.Equal(double.
NegativeInfinity
, rect.Height);
283
Assert.Equal(double.
NegativeInfinity
, rect.Size.Width);
284
Assert.Equal(double.
NegativeInfinity
, rect.Size.Height);
288
Assert.Equal(double.
NegativeInfinity
, rect.TopRight.X);
290
Assert.Equal(double.
NegativeInfinity
, rect.Bottom);
292
Assert.Equal(double.
NegativeInfinity
, rect.BottomLeft.Y);
293
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.X);
294
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.Y);
311
yield return new object[] { new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), new Vector(1, 2), double.
NegativeInfinity
, double.
NegativeInfinity
, double.NaN, double.NaN };
312
yield return new object[] { new Point(1, 2), new Vector(double.
NegativeInfinity
, double.
NegativeInfinity
), double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity };
313
yield return new object[] { new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), new Vector(double.
NegativeInfinity
, double.
NegativeInfinity
), double.
NegativeInfinity
, double.
NegativeInfinity
, double.NaN, double.NaN };
364
Assert.Equal(double.
NegativeInfinity
, rect.Width);
365
Assert.Equal(double.
NegativeInfinity
, rect.Height);
368
Assert.Equal(double.
NegativeInfinity
, rect.Size.Width);
369
Assert.Equal(double.
NegativeInfinity
, rect.Size.Height);
373
Assert.Equal(double.
NegativeInfinity
, rect.TopRight.X);
375
Assert.Equal(double.
NegativeInfinity
, rect.Bottom);
377
Assert.Equal(double.
NegativeInfinity
, rect.BottomLeft.Y);
378
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.X);
379
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.Y);
528
Assert.Equal(double.
NegativeInfinity
, rect.Width);
529
Assert.Equal(double.
NegativeInfinity
, rect.Height);
532
Assert.Equal(double.
NegativeInfinity
, rect.Size.Width);
533
Assert.Equal(double.
NegativeInfinity
, rect.Size.Height);
537
Assert.Equal(double.
NegativeInfinity
, rect.TopRight.X);
539
Assert.Equal(double.
NegativeInfinity
, rect.Bottom);
541
Assert.Equal(double.
NegativeInfinity
, rect.BottomLeft.Y);
542
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.X);
543
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.Y);
557
Assert.Equal(double.
NegativeInfinity
, rect.Width);
558
Assert.Equal(double.
NegativeInfinity
, rect.Height);
561
Assert.Equal(double.
NegativeInfinity
, rect.Size.Width);
562
Assert.Equal(double.
NegativeInfinity
, rect.Size.Height);
566
Assert.Equal(double.
NegativeInfinity
, rect.TopRight.X);
568
Assert.Equal(double.
NegativeInfinity
, rect.Bottom);
570
Assert.Equal(double.
NegativeInfinity
, rect.BottomLeft.Y);
571
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.X);
572
Assert.Equal(double.
NegativeInfinity
, rect.BottomRight.Y);
578
yield return new object[] { double.
NegativeInfinity
};
651
yield return new object[] { double.
NegativeInfinity
};
794
[InlineData(double.
NegativeInfinity
)]
876
[InlineData(double.
NegativeInfinity
)]
1024
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), new Point(0, 0), true };
1025
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), new Point(1, 2), true };
1026
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), true };
1027
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), new Point(double.MinValue, double.MinValue), true };
1028
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), new Point(double.MaxValue, double.MaxValue), true };
1029
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), new Point(double.PositiveInfinity, double.PositiveInfinity), false };
1039
yield return new object[] { new Rect(1, 2, double.PositiveInfinity, double.PositiveInfinity), new Point(double.
NegativeInfinity
, double.
NegativeInfinity
), false };
1738
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), 0, 0, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
1739
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), 5, 6, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
1740
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), -5, -6, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
1741
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), double.PositiveInfinity, double.PositiveInfinity, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
1742
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, Rect.Empty };
1746
yield return new object[] { new Rect(1, 2, double.PositiveInfinity, double.PositiveInfinity), double.PositiveInfinity, double.PositiveInfinity, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
1747
yield return new object[] { new Rect(1, 2, double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, Rect.Empty };
1754
yield return new object[] { new Rect(double.NaN, double.NaN, double.NaN, double.NaN), double.
NegativeInfinity
, double.
NegativeInfinity
, Rect.Empty };
1760
yield return new object[] { new Rect(1, 2, double.NaN, double.NaN), double.
NegativeInfinity
, double.
NegativeInfinity
, Rect.Empty };
2691
yield return new object[] { new Rect(double.MinValue, double.MinValue, 3, 4), double.MinValue, double.MinValue, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, 3, 4) };
2698
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), 0, 0, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2699
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), 5, 6, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2700
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), -5, -6, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2701
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), double.PositiveInfinity, double.PositiveInfinity, new Rect(double.NaN, double.NaN, double.PositiveInfinity, double.PositiveInfinity) };
2702
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2707
yield return new object[] { new Rect(1, 2, double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2714
yield return new object[] { new Rect(double.NaN, double.NaN, double.NaN, double.NaN), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.NaN, double.NaN, double.NaN, double.NaN) };
2720
yield return new object[] { new Rect(1, 2, double.NaN, double.NaN), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.NaN, double.NaN) };
2871
yield return new object[] { new Rect(-1, -2, 3, 4), double.MinValue, double.MinValue, new Rect(double.
NegativeInfinity
, double.NaN, double.PositiveInfinity, double.PositiveInfinity) };
2872
yield return new object[] { new Rect(0, 0, 3, 4), double.MinValue, double.MinValue, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2875
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), 0, 0, new Rect(double.NaN, double.NaN, double.NaN, double.NaN) };
2876
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), 5, 6, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2877
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), -5, -6, new Rect(double.NaN, double.NaN, double.PositiveInfinity, double.PositiveInfinity) };
2878
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), double.PositiveInfinity, double.PositiveInfinity, new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2879
yield return new object[] { new Rect(double.
NegativeInfinity
, double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.NaN, double.NaN, double.PositiveInfinity, double.PositiveInfinity) };
2882
yield return new object[] { new Rect(1, 2, double.PositiveInfinity, double.PositiveInfinity), -5, -6, new Rect(double.
NegativeInfinity
,double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2884
yield return new object[] { new Rect(1, 2, double.PositiveInfinity, double.PositiveInfinity), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.
NegativeInfinity
,double.
NegativeInfinity
, double.PositiveInfinity, double.PositiveInfinity) };
2891
yield return new object[] { new Rect(double.NaN, double.NaN, double.NaN, double.NaN), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.NaN, double.NaN, double.NaN, double.NaN) };
2897
yield return new object[] { new Rect(1, 2, double.NaN, double.NaN), double.
NegativeInfinity
, double.
NegativeInfinity
, new Rect(double.NaN, double.NaN, double.NaN, double.NaN) };
System\Windows\SizeTests.cs (10)
43
[InlineData(double.
NegativeInfinity
)]
53
[InlineData(double.
NegativeInfinity
)]
66
Assert.Equal(double.
NegativeInfinity
, size.Width);
67
Assert.Equal(double.
NegativeInfinity
, size.Height);
94
[InlineData(double.
NegativeInfinity
)]
136
[InlineData(double.
NegativeInfinity
)]
512
Assert.Equal(double.
NegativeInfinity
, result.X);
513
Assert.Equal(double.
NegativeInfinity
, result.Y);
545
Assert.Equal(double.
NegativeInfinity
, result.X);
546
Assert.Equal(double.
NegativeInfinity
, result.Y);
System\Windows\VectorTests.cs (5)
24
[InlineData(double.
NegativeInfinity
, double.
NegativeInfinity
)]
75
[InlineData(double.
NegativeInfinity
)]
100
[InlineData(double.
NegativeInfinity
)]
156
yield return new object[] { new Vector(1, 2), new Vector(double.MaxValue, double.MaxValue), double.
NegativeInfinity
};