StringInfo Class Library
StringInfo Members
Sets the properties to pass to the Polyglot method of the StringGenerator.
Properties
| Name | Description | |
|
|
Seed | Sets the seed value for the pseudo-random generator. The seed must be an integer value between 0 and 2,147, 483,647. The default value is 0. |
|
|
MaximumCharacterCount | An integer value that sets the maximum number of characters in the randomly generated string. The default value is 25 characters. |
|
|
RandomizeCharacterCount | Sets the value to determine if the string length should be the maximum length, or a random length string between 1 and the value set by MaximumCharacterCount. The default is false. |
|
|
LangugeGroup | Sets the value to determine whether to use a set of characters for a specific language group. |
|
|
UseCustomRange | Sets the value to determine whether to use a user defined set of characters. The default is false. UseCustomRange overrides LanguageGroup property. |
|
|
CustomUnicodeStartRange | Sets the value for the first character in a custom range. The default value is '\u0000'. UseCustomRange must be set to true. |
|
|
CustomUnicodeEndRange | Sets the value for the last character in a custom range. The default value is '\uFFFF'. UseCustomRange must be set to true. |
|
|
IsSendKeysSafe | Sets the value to determine if the string is safe for C#'s sendkeys class members by excluding special characters. The default value is false. |
|
|
AllowNetBiosReservedCharacters | Sets the value to determine if the string may contain reserved NetBios protocol characters. The default value is false. |
|
|
AllowCombiningCharacters | Sets the value to determine if the string may contain combining characters. The default value is true. |
|
|
AllowControlCharacters | Sets the value to determine if the string may contain control characters. The default value is false. |
|
|
AllowFormattingCharacters | Sets the value to determine if the string may contain string formatting characters. The default value is false. |
|
|
AllowNumberCharacters | Sets the value to determine if the string may contain number characters. The default value is true. |
|
|
AllowPrivateUseCharacters | Sets the value to determine if the string may contain private use characters. The default value is true. |
|
|
AllowReservedFileNameCharacters | Sets the value to determine if the string may contain reserved filename characters. The default value is true. |
|
|
AllowSurrogatePairCharacters | Sets the value to determine if the string may contain surrogate pair characters. The default value is false. |
|
|
AllowBidirectionalCharacters | Sets the value to determine if the string may contain bidirectional characters. The default value is true. |
|
|
InjectSpecialCharacter | Sets the value to determine what special character is inserted into a string. The default value is none. |
|
|
SpecialCharacterPosition | Sets the value to determine if the special character is inserted into a random position, or as the first or last character in the string. The default is random position. |
Remarks
The HasSurrogatePair property is deprecated and no longer used, and has no impact on the generated test data.
The Allow properties simply mean that if a character of that type is randomly generated during the random generation sequence it will be appended to the string if the property is set to true.
The InjectSpecialCharacter will mutate the string to include at least one of the following types of Unicode characters; surrogate pair character, combining character, reserved filename character, or a reserved NetBios protocol character.
The SpecialCharacterPosition property will insert the special character in either a random position in the string, or the first or last character position in the string.





