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