Example #1
0
 public void LessThan_LessThan_ReturnsValue()
 {
     Assert.That(
         Require.LessThan(0, -1, C_ParamName),
         Is.EqualTo(-1)
         );
 }
Example #2
0
        public void LessThan_GreaterOrEqual_ThrowsArgumentOutOfRangeException(
            int AMinimum,
            int AValue
            )
        {
            var ex = Assert.Throws <ArgumentOutOfRangeException>(
                () => Require.LessThan(AMinimum, AValue, nameof(AValue))
                );

            Assert.That(ex.ParamName, Is.EqualTo(nameof(AValue)));
        }