Пример #1
0
        public void GetRandomNumber_ThatIsGreaterThan100AndLessThan1000_RandomNumberReturned()
        {
            // Arrange
            double low              = 100;
            double high             = 1000;
            var    concurrentRandom = new ConcurrentRandom();

            // Act
            double result = concurrentRandom.Uniform(low, high);

            // Assert
            result.Should().BeInRange(low, high);
        }
Пример #2
0
        public void GetRandomNumber_WhereLowAndHighAreEqual_LowHighValueReturned()
        {
            // Arrange
            double low              = 100;
            double high             = 100;
            var    concurrentRandom = new ConcurrentRandom();

            // Act
            double result = concurrentRandom.Uniform(low, high);

            // Assert
            result.Should().BeInRange(low, high);
        }