public void ToUshortMinOver() { Assert.ThrowsException <OverflowException>(() => { var castedVal = BigUInteger.ToUInt16(new BigUInteger(ushort.MinValue) - 1); }); }
public void ToUshortFractional() { ExecTest <ushort>(BigUInteger.ToUInt16(new BigUInteger(5) / 2), 2); }
public void ToUshortMin() { ExecTest <ushort>(BigUInteger.ToUInt16(new BigUInteger(ushort.MinValue)), ushort.MinValue); }