C# Class System.Numerics.Tests.cast_fromTest

Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode Description
ByteArrayMakeMinSize ( Byte input, int minSize ) : byte[]

Private Methods

Méthode Description
DoubleExplicitCastFromLargeBigIntegerTests ( int startShift, int bigShiftLoopLimit, int smallShift, int smallShiftLoopLimit = 1 ) : void

Test cast to Double on Very Large BigInteger more than (1 << Int.MaxValue) Tested BigInteger are: +/-pow(2, startShift + smallLoopShift * [1..smallLoopLimit] + Int32.MaxValue * [1..bigLoopLimit]) Expected double is positive and negative infinity Note: ToString() can not operate such large values

GenerateRandomBigIntegerGreaterThan ( Decimal value, Random random ) : BigInteger
GenerateRandomBigIntegerGreaterThan ( Double value, Random random ) : BigInteger
GenerateRandomBigIntegerGreaterThan ( UInt64 value, Random random ) : BigInteger
GenerateRandomBigIntegerLessThan ( Decimal value, Random random ) : BigInteger
GenerateRandomBigIntegerLessThan ( Double value, Random random ) : BigInteger
GenerateRandomBigIntegerLessThan ( Int64 value, Random random ) : BigInteger
GenerateRandomNegativeBigInteger ( Random random ) : BigInteger
GenerateRandomPositiveBigInteger ( Random random ) : BigInteger
RunByteExplicitCastFromBigIntegerTests ( ) : void
RunDecimalExplicitCastFromBigIntegerTests ( ) : void
RunDoubleExplicitCastFromBigIntegerTests ( ) : void
RunDoubleExplicitCastFromLargeBigIntegerTests ( ) : void
RunInt16ExplicitCastFromBigIntegerTests ( ) : void
RunInt32ExplicitCastFromBigIntegerTests ( ) : void
RunInt64ExplicitCastFromBigIntegerTests ( ) : void
RunSByteExplicitCastFromBigIntegerTests ( ) : void
RunSingleExplicitCastFromBigIntegerTests ( ) : void
RunUInt16ExplicitCastFromBigIntegerTests ( ) : void
RunUInt32ExplicitCastFromBigIntegerTests ( ) : void
RunUInt64ExplicitCastFromBigIntegerTests ( ) : void
VerifyByteExplicitCastFromBigInteger ( Byte value ) : void
VerifyByteExplicitCastFromBigInteger ( Byte value, BigInteger bigInteger ) : void
VerifyDecimalExplicitCastFromBigInteger ( Decimal value ) : void
VerifyDecimalExplicitCastFromBigInteger ( Decimal value, BigInteger bigInteger ) : void
VerifyDoubleExplicitCastFromBigInteger ( Double value ) : void
VerifyDoubleExplicitCastFromBigInteger ( Double value, BigInteger bigInteger ) : void
VerifyInt16ExplicitCastFromBigInteger ( Int16 value ) : void
VerifyInt16ExplicitCastFromBigInteger ( Int16 value, BigInteger bigInteger ) : void
VerifyInt32ExplicitCastFromBigInteger ( Int32 value ) : void
VerifyInt32ExplicitCastFromBigInteger ( Int32 value, BigInteger bigInteger ) : void
VerifyInt64ExplicitCastFromBigInteger ( Int64 value ) : void
VerifyInt64ExplicitCastFromBigInteger ( Int64 value, BigInteger bigInteger ) : void
VerifySByteExplicitCastFromBigInteger ( SByte value ) : void
VerifySByteExplicitCastFromBigInteger ( SByte value, BigInteger bigInteger ) : void
VerifySingleExplicitCastFromBigInteger ( Single value ) : void
VerifySingleExplicitCastFromBigInteger ( Single value, BigInteger bigInteger ) : void
VerifyUInt16ExplicitCastFromBigInteger ( UInt16 value ) : void
VerifyUInt16ExplicitCastFromBigInteger ( UInt16 value, BigInteger bigInteger ) : void
VerifyUInt32ExplicitCastFromBigInteger ( UInt32 value ) : void
VerifyUInt32ExplicitCastFromBigInteger ( UInt32 value, BigInteger bigInteger ) : void
VerifyUInt64ExplicitCastFromBigInteger ( UInt64 value ) : void
VerifyUInt64ExplicitCastFromBigInteger ( UInt64 value, BigInteger bigInteger ) : void

Method Details

ByteArrayMakeMinSize() public static méthode

public static ByteArrayMakeMinSize ( Byte input, int minSize ) : byte[]
input Byte
minSize int
Résultat byte[]