public void GivenAnyWhenNegativeIntegerThenNegativeIntegerReturned() { var negativeInt = AnyVal.NegativeInt32(); negativeInt.Should().BeLessOrEqualTo(0); Console.WriteLine(negativeInt); }
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); }
public void GivenAnyWhenNegativeIntegerMaxThenNegativeIntegerReturned() { const int minValue = -50; var negativeInt = AnyVal.NegativeInt32(minValue); negativeInt.Should().BeLessOrEqualTo(0); negativeInt.Should().BeGreaterOrEqualTo(minValue); Console.WriteLine(negativeInt); }