C# Class InteropApiTests.Any

Generate arbitrary (random) values
显示文件 Open project: ayende/managed-esent Class Usage Examples

Public Methods

Method Description
BytesOfLength ( int numBytes ) : byte[]

Gets a random array of bytes of the specified length.

StringOfLength ( int numChars ) : string

Gets a random string of the specified length.

Method Details

BytesOfLength() public static method

Gets a random array of bytes of the specified length.
public static BytesOfLength ( int numBytes ) : byte[]
numBytes int Number of bytes to be returned.
return byte[]

StringOfLength() public static method

Gets a random string of the specified length.
public static StringOfLength ( int numChars ) : string
numChars int Number of chars to be in the string.
return string