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