Show / Hide Table of Contents

    Class RandomizedTest

    Common scaffolding for subclassing randomized tests.

    Inheritance
    System.Object
    RandomizedTest
    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.Randomized
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class RandomizedTest

    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 NUnit.Framework.InconclusiveException 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
    System.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 NUnit.Framework.InconclusiveException 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)