public void ToFloatPositiveInfinity() { Assert.ThrowsException <OverflowException>(() => { var castedVal = BigUInteger.ToSingle(float.PositiveInfinity); }); }
public void ToFloatZero() { ExecTest <float>(BigUInteger.ToSingle(new BigUInteger(0f)), 0f); }
public void ToFloatNaN() { Assert.ThrowsException <OverflowException>(() => { var castedVal = BigUInteger.ToSingle(float.NaN); }); }
public void ToFloatEpsilonLower() { ExecTest <float>(BigUInteger.ToSingle(new BigUInteger(float.Epsilon) / 2), 0); }
public void ToFloatEpsilon() { ExecTest <float>(BigUInteger.ToSingle(new BigUInteger(float.Epsilon)), 0f); }
public void ToFloatMinOver() { Assert.ThrowsException <OverflowException>(() => { var castedVal = BigUInteger.ToSingle(new BigUInteger(float.MinValue) - 1); }); }
public void ToFloatMaxOver() { ExecTest <float>(BigUInteger.ToSingle(new BigUInteger(float.MaxValue) + 1), float.PositiveInfinity); }
public void ToFloatMaxValue() { ExecTest <float>(BigUInteger.ToSingle(new BigUInteger(float.MaxValue)), float.MaxValue); }