コード例 #1
0
        public static void RunTests_BigIntegerExplicitCastToComplex()
        {
            VerifyBigIntegerExplicitCastToComplex((BigInteger)Double.MinValue);

            for (int i = 0; i < Support.RandomSampleCount; ++i)
            {
                BigInteger randomValue = Support.GetRandomBigIntegerValue(false);
                VerifyBigIntegerExplicitCastToComplex(randomValue);
            }

            VerifyBigIntegerExplicitCastToComplex(0);
            VerifyBigIntegerExplicitCastToComplex(1);

            for (int i = 0; i < Support.RandomSampleCount; ++i)
            {
                BigInteger randomValue = Support.GetRandomBigIntegerValue(true);
                VerifyBigIntegerExplicitCastToComplex(randomValue);
            }

            VerifyBigIntegerExplicitCastToComplex((BigInteger)Double.MaxValue);
        }