C# 클래스 NUnit.Framework.Randomizer

Randomizer returns a set of random values in a repeatable way, to allow re-running of tests if necessary.
상속: System.Random
파일 보기 프로젝트 열기: antonsamarsky/emitmapper-tools 1 사용 예제들

공개 메소드들

메소드 설명
GetDoubles ( double min, double max, int count ) : double[]

Return an array of random doubles with values in a specified range.

GetDoubles ( int count ) : double[]

Return an array of random doubles between 0.0 and 1.0.

GetInts ( int min, int max, int count ) : int[]

Return an array of random ints with values in a specified range.

GetRandomizer ( MemberInfo member ) : Randomizer

Get a randomizer for a particular member, returning one that has already been created if it exists. This ensures that the same values are generated each time the tests are reloaded.

GetRandomizer ( ParameterInfo parameter ) : Randomizer

Get a randomizer for a particular parameter, returning one that has already been created if it exists. This ensures that the same values are generated each time the tests are reloaded.

Randomizer ( ) : System

Construct a randomizer using a random seed

Randomizer ( int seed ) : System

Construct a randomizer using a specified seed

메소드 상세

GetDoubles() 공개 메소드

Return an array of random doubles with values in a specified range.
public GetDoubles ( double min, double max, int count ) : double[]
min double
max double
count int
리턴 double[]

GetDoubles() 공개 메소드

Return an array of random doubles between 0.0 and 1.0.
public GetDoubles ( int count ) : double[]
count int
리턴 double[]

GetInts() 공개 메소드

Return an array of random ints with values in a specified range.
public GetInts ( int min, int max, int count ) : int[]
min int
max int
count int
리턴 int[]

GetRandomizer() 공개 정적인 메소드

Get a randomizer for a particular member, returning one that has already been created if it exists. This ensures that the same values are generated each time the tests are reloaded.
public static GetRandomizer ( MemberInfo member ) : Randomizer
member System.Reflection.MemberInfo
리턴 Randomizer

GetRandomizer() 공개 정적인 메소드

Get a randomizer for a particular parameter, returning one that has already been created if it exists. This ensures that the same values are generated each time the tests are reloaded.
public static GetRandomizer ( ParameterInfo parameter ) : Randomizer
parameter System.Reflection.ParameterInfo
리턴 Randomizer

Randomizer() 공개 메소드

Construct a randomizer using a random seed
public Randomizer ( ) : System
리턴 System

Randomizer() 공개 메소드

Construct a randomizer using a specified seed
public Randomizer ( int seed ) : System
seed int
리턴 System