public void ToSbyteMinOver() { Assert.ThrowsException <OverflowException>(() => { var castedVal = BigUInteger.ToSByte(new BigUInteger(sbyte.MinValue) - 1); }); }
public void ToSbyteFractional() { ExecTest <sbyte>(BigUInteger.ToSByte(new BigUInteger(5) / 2), 2); }
public void ToSbyteMax() { ExecTest <sbyte>(BigUInteger.ToSByte(new BigUInteger(sbyte.MaxValue)), sbyte.MaxValue); }