Example #1
0
 public void Between_Inside_ReturnsValue(
     int AMinimum,
     int AValue,
     int AMaximum
     )
 {
     Assert.That(
         Require.Between(AMinimum, AValue, nameof(AValue), AMaximum),
         Is.EqualTo(AValue)
         );
 }
Example #2
0
        public void Between_Outside_ThrowsArgumentOutOfRangeException(
            int AMinimum,
            int AValue,
            int AMaximum
            )
        {
            var ex = Assert.Throws <ArgumentOutOfRangeException>(
                () => Require.Between(AMinimum, AValue, nameof(AValue), AMaximum)
                );

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