Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RandomExtensions

    Extensions to System.Random in order to randomly generate types and specially formatted strings that assist with testing custom extensions to Lucene.NET.

    Inheritance
    System.Object
    RandomExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class RandomExtensions

    Methods

    | Improve this Doc View Source

    NextAnalysisString(Random, Int32, Boolean)

    Declaration
    public static string NextAnalysisString(this Random random, int maxLength, bool simple)
    Parameters
    Type Name Description
    System.Random random
    System.Int32 maxLength
    System.Boolean simple
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    NextFilterStrategy(Random)

    Declaration
    public static FilteredQuery.FilterStrategy NextFilterStrategy(this Random random)
    Parameters
    Type Name Description
    System.Random random
    Returns
    Type Description
    Lucene.Net.Search.FilteredQuery.FilterStrategy
    | Improve this Doc View Source

    NextSubString(Random, Int32, Boolean)

    Declaration
    public static string NextSubString(this Random random, int wordLength, bool simple)
    Parameters
    Type Name Description
    System.Random random
    System.Int32 wordLength
    System.Boolean simple
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    NextWhitespace(Random, Int32, Int32)

    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
    System.Random random
    System.Int32 minLength
    System.Int32 maxLength
    Returns
    Type Description
    System.String
    See Also
    WHITESPACE_CHARACTERS
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.