public void ToShortMinOver() { Assert.ThrowsException <OverflowException>(() => { var castedVal = BigUInteger.ToInt16(new BigUInteger(short.MinValue) - 1); }); }
public void ToShortFractional() { ExecTest <short>(BigUInteger.ToInt16(new BigUInteger(5) / 2), 2); }
public void ToShortMax() { ExecTest <short>(BigUInteger.ToInt16(new BigUInteger(short.MaxValue)), short.MaxValue); }