Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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
    object
    RandomExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net
    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
    Type Name Description
    Random random
    int maxLength
    bool simple
    Returns
    Type Description
    string

    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
    Type Name Description
    Random random
    int wordLength
    bool simple
    Returns
    Type Description
    string

    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
    Type Description
    string
    See Also
    WHITESPACE_CHARACTERS
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.