public void GetRandomDoubleTestArgumentOutOfRangeException() { // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => RandomValueEx.GetRandomDouble(30, 20); test.ShouldThrow <ArgumentOutOfRangeException>(); }
public void GetRandomDoubleTest() { var actual = RandomValueEx.GetRandomDouble(-100, 300); actual.Should() .BeGreaterOrEqualTo(-100); actual.Should() .BeLessThan(300); }