Beispiel #1
0
        public void GetRandomDoubleTestArgumentOutOfRangeException()
        {
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => RandomValueEx.GetRandomDouble(30, 20);

            test.ShouldThrow <ArgumentOutOfRangeException>();
        }
Beispiel #2
0
        public void GetRandomDoubleTest()
        {
            var actual = RandomValueEx.GetRandomDouble(-100, 300);

            actual.Should()
            .BeGreaterOrEqualTo(-100);
            actual.Should()
            .BeLessThan(300);
        }