public void NextValueWithTypeCanEvalutateManyTimesTest(Type type, bool typeSupported, object min, object max)
{
if (typeSupported == false)
{
// Ignore this test
return;
}
var target = new RandomGenerator();
for (var index = 0; index < 100000; index++)
{
var value = target.NextValue(type, min, max);
value.Should().NotBeNull();
if (type.IsNullable())
{
value.Should().BeOfType(type.GetGenericArguments()[0]);
}
else
{
value.Should().BeOfType(type);
}
}
}