Refactored

This commit is contained in:
tsommer committed 2020-10-19 19:48:28 +02:00
1 parent dad5ead650
commit c007c6aef0
2 files changed
+13 -30

No files matched your search

@@ -63,23 +63,6 @@ namespace FastRngTests.Double.Distributions
Assert.That(samples.Max(), Is.LessThanOrEqualTo(1.0), "Max is out of range");
}
[Test]
[Category(TestCategories.COVER)]
[Category(TestCategories.NORMAL)]
public void ParameterTest01()
{
var dist = new FastRng.Double.Distributions.CauchyLorentz();
Assert.Throws<ArgumentOutOfRangeException>(() => dist.Scale = 0);
Assert.Throws<ArgumentOutOfRangeException>(() => dist.Scale = -78);
Assert.DoesNotThrow(() => dist.Scale = 0.0001);
Assert.DoesNotThrow(() => dist.Scale = 4);
Assert.DoesNotThrow(() => dist.Median = -45);
Assert.DoesNotThrow(() => dist.Median = 15);
Assert.DoesNotThrow(() => dist.Median = 0);
}
[Test]
[Category(TestCategories.COVER)]
[Category(TestCategories.NORMAL)]