5 references to IfLessThan
Shared.Tests (5)
Throw\DoubleTests.cs (5)
18
var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.
IfLessThan
(0.0, 1.0, "paramName"));
22
exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.
IfLessThan
(double.NaN, 1.0, "paramName"));
30
var exception = Record.Exception(() => Throw.
IfLessThan
(0.0, 0.0, "paramName"));
164
var exceptionImplicitArgumentName = Record.Exception(() => Throw.
IfLessThan
(Zero, 1));
166
var exceptionExplicitArgumentName = Record.Exception(() => Throw.
IfLessThan
(Zero, 1, nameof(Zero)));