Added test case for no rng

This commit is contained in:
Thorsten Sommer 2020-11-07 22:42:14 +01:00
parent 0f724991cd
commit c8cbe2cec8
2 changed files with 16 additions and 0 deletions

View File

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

View File

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