Jumar Macato
7 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
0 additions and
16 deletions
-
tests/Avalonia.Controls.UnitTests/Primitives/RangeBaseTests.cs
|
|
|
@ -82,22 +82,6 @@ namespace Avalonia.Controls.UnitTests.Primitives |
|
|
|
Assert.Equal(50, target.Value); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void Properties_Should_Not_Accept_Nan_And_Inifinity() |
|
|
|
{ |
|
|
|
var target = new TestRange(); |
|
|
|
|
|
|
|
Assert.Throws<ArgumentException>(() => target.Minimum = double.NaN); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Minimum = double.PositiveInfinity); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Minimum = double.NegativeInfinity); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Maximum = double.NaN); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Maximum = double.PositiveInfinity); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Maximum = double.NegativeInfinity); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Value = double.NaN); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Value = double.PositiveInfinity); |
|
|
|
Assert.Throws<ArgumentException>(() => target.Value = double.NegativeInfinity); |
|
|
|
} |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[InlineData(true)] |
|
|
|
[InlineData(false)] |
|
|
|
|