public void NextValueWithTypeAndMaxReturnsRandomValueTest()
{
var max = Environment.TickCount;
var type = typeof(int);
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(typeof(int), max);
actual.Should().Be(expected);
}