Added test case for no rng
This commit is contained in:
parent
0f724991cd
commit
c8cbe2cec8
@ -285,5 +285,13 @@ namespace FastRngTests.Double.Distributions
|
||||
|
||||
Assert.That(distribution[..^1].Max() - distribution[..^1].Min(), Is.InRange(0, 6_000));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category(TestCategories.COVER)]
|
||||
[Category(TestCategories.NORMAL)]
|
||||
public void NoRandomNumberGenerator01()
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(() => new FastRng.Double.Distributions.Uniform(null));
|
||||
}
|
||||
}
|
||||
}
|
@ -285,5 +285,13 @@ namespace FastRngTests.Float.Distributions
|
||||
|
||||
Assert.That(distribution[..^1].Max() - distribution[..^1].Min(), Is.InRange(0, 6_000));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category(TestCategories.COVER)]
|
||||
[Category(TestCategories.NORMAL)]
|
||||
public void NoRandomNumberGenerator01()
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(() => new FastRng.Float.Distributions.Uniform(null));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user