Пример #1
0
 public void GreaterThan_GreaterThan_ReturnsValue()
 {
     Assert.That(
         Require.GreaterThan(0, 1, C_ParamName),
         Is.EqualTo(1)
         );
 }
Пример #2
0
        public void GreaterThan_LessOrEqual_ThrowsArgumentOutOfRangeException(
            int AMinimum,
            int AValue
            )
        {
            var ex = Assert.Throws <ArgumentOutOfRangeException>(
                () => Require.GreaterThan(AMinimum, AValue, nameof(AValue))
                );

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