public void NextValueWithMaxReturnsRandomValueTest()
{
var type = typeof(int);
var max = 100;
var expected = Environment.TickCount;
var target = Substitute.For<IRandomGenerator>();
target.GetMin(type).Returns(int.MinValue);
target.NextValue(type, Arg.Is<object>(int.MinValue), max).Returns(expected);
var actual = target.NextValue(max);
actual.Should().Be(expected);
}