4 references to IfLessThanOrEqual
Shared.Tests (4)
Throw\IntegerTests.cs (4)
48
var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.
IfLessThanOrEqual
(1, 1, "paramName"));
56
var exception = Record.Exception(() => Throw.
IfLessThanOrEqual
(1, 0, "paramName"));
149
var exceptionImplicitArgumentName = Record.Exception(() => Throw.
IfLessThanOrEqual
(Zero, 1));
151
var exceptionExplicitArgumentName = Record.Exception(() => Throw.
IfLessThanOrEqual
(Zero, 1, nameof(Zero)));