Accord.Tests.Statistics.UnivariateContinuousDistributionTest.GetRangeTest_RangeException C# (CSharp) Method

GetRangeTest_RangeException() private method

private GetRangeTest_RangeException ( ) : void
return void
        public void GetRangeTest_RangeException()
        {
            UnivariateContinuousDistribution target = CreateUnivariateContinuousDistribution();

            bool thrown = false;
            try { target.GetRange(0 - Double.Epsilon); }
            catch (ArgumentOutOfRangeException) { thrown = true; }
            Assert.IsTrue(thrown);

            thrown = false;
            try { target.GetRange(1.0 + 2 * Constants.DoubleEpsilon); }
            catch (ArgumentOutOfRangeException) { thrown = true; }
            Assert.IsTrue(thrown);
        }