Example #1
0
        public void BigRational_ToDecimal_ProducesOverflowExceptionIfValueIsTooBig()
        {
            BigRational bigValue = BigRational.Create(VeryBigNumber);

            Assert.Throws <OverflowException>(() => bigValue.ToDecimal());
        }
Example #2
0
        public void BigRational_ToDecimal_ProducesOverflowExceptionIfValueIsTooBig()
        {
            BigRational bigValue = BigRational.Create(VeryBigNumber);

            bigValue.ToDecimal();
        }