Class RandomExtensions
Extensions to Random in order to randomly generate
types and specially formatted strings that assist with testing
custom extensions to Lucene.NET.
Inheritance
RandomExtensions
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class RandomExtensions
Methods
NextAnalysisString(Random, int, bool)
Extensions to Random in order to randomly generate
types and specially formatted strings that assist with testing
custom extensions to Lucene.NET.
Declaration
public static string NextAnalysisString(this Random random, int maxLength, bool simple)
Parameters
Returns
NextFilterStrategy(Random)
Extensions to Random in order to randomly generate
types and specially formatted strings that assist with testing
custom extensions to Lucene.NET.
Declaration
public static FilteredQuery.FilterStrategy NextFilterStrategy(this Random random)
Parameters
Type |
Name |
Description |
Random |
random |
|
Returns
Type |
Description |
FilteredQuery.FilterStrategy |
|
NextSubString(Random, int, bool)
Extensions to Random in order to randomly generate
types and specially formatted strings that assist with testing
custom extensions to Lucene.NET.
Declaration
public static string NextSubString(this Random random, int wordLength, bool simple)
Parameters
Returns
NextWhitespace(Random, int, int)
Returns a random string in the specified length range consisting
entirely of whitespace characters.
Declaration
public static string NextWhitespace(this Random random, int minLength, int maxLength)
Parameters
Type |
Name |
Description |
Random |
random |
|
int |
minLength |
|
int |
maxLength |
|
Returns
See Also