Dev2.Tests.Dev2RandomTests.GenerateWithNumbersExpectedNumbersMaximumDoubleRange C# (CSharp) Method

GenerateWithNumbersExpectedNumbersMaximumDoubleRange() private method

        public void GenerateWithNumbersExpectedNumbersMaximumDoubleRange()
        {
            const double MinDouble = double.MinValue;
            const double MaxDouble = double.MaxValue;
            double result = double.Parse(_dev2Random.GetRandom(enRandomType.Numbers, -1, MinDouble, MaxDouble));
            Assert.IsTrue(result <= MaxDouble, "Dev2Random generated a number above the specified range");
            Assert.IsTrue(result >= MinDouble, "Dev2Random generated a number below the specified range");
        }