Show / Hide Table of Contents

    Class RandomizedTest

    Common scaffolding for subclassing randomized tests.

    Inheritance
    System.Object
    RandomizedTest
    Namespace: Lucene.Net.Randomized
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class RandomizedTest : object

    Methods

    | Improve this Doc View Source

    AssumeFalse(String, Boolean)

    Declaration
    public static void AssumeFalse(string msg, bool condition)
    Parameters
    Type Name Description
    System.String msg

    Message to be included in the exception's string.

    System.Boolean condition

    If true an is thrown by this method and the test case (should be) ignored (or rather technically, flagged as a failure not passing a certain assumption). Tests that are assumption-failures do not break builds (again: typically).

    | Improve this Doc View Source

    AssumeNoException(String, Exception)

    Assume t is null.

    Declaration
    public static void AssumeNoException(string msg, Exception t)
    Parameters
    Type Name Description
    System.String msg
    Exception t
    | Improve this Doc View Source

    AssumeTrue(String, Boolean)

    Declaration
    public static void AssumeTrue(string msg, bool condition)
    Parameters
    Type Name Description
    System.String msg

    Message to be included in the exception's string.

    System.Boolean condition

    If false an is thrown by this method and the test case (should be) ignored (or rather technically, flagged as a failure not passing a certain assumption). Tests that are assumption-failures do not break builds (again: typically).

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)