Пример #1
0
        public void GivenAnyWhenNegativeIntegerThenNegativeIntegerReturned()
        {
            var negativeInt = AnyVal.NegativeInt32();

            negativeInt.Should().BeLessOrEqualTo(0);
            Console.WriteLine(negativeInt);
        }
Пример #2
0
        public void GivenMinValueAndMaxValueWhenNegativeInt32ThenNegativeValueReturned()
        {
            const int startValue    = -200;
            const int endValue      = -100;
            var       negativeValue = AnyVal.NegativeInt32(startValue, endValue);

            negativeValue.Should().BeGreaterOrEqualTo(startValue);
            negativeValue.Should().BeLessOrEqualTo(endValue);
        }
Пример #3
0
        public void GivenAnyWhenNegativeIntegerMaxThenNegativeIntegerReturned()
        {
            const int minValue    = -50;
            var       negativeInt = AnyVal.NegativeInt32(minValue);

            negativeInt.Should().BeLessOrEqualTo(0);
            negativeInt.Should().BeGreaterOrEqualTo(minValue);
            Console.WriteLine(negativeInt);
        }