Added test case for no rng

This commit is contained in:
tsommer committed 2020-11-07 22:42:14 +01:00
1 parent 0f724991cd
commit c8cbe2cec8
2 files changed
+16

No files matched your search

@@ -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));
}
}
}