Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class LuceneTestCase.TestFixtureAttribute

    Marks the class as a TestFixture.

    Inheritance
    object
    Attribute
    NUnitAttribute
    LuceneTestCase.TestFixtureAttribute
    Implements
    IFixtureBuilder2
    IFixtureBuilder
    ITestFixtureData
    ITestData
    Inherited Members
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class LuceneTestCase.TestFixtureAttribute : NUnitAttribute, IFixtureBuilder2, IFixtureBuilder, ITestFixtureData, ITestData

    Constructors

    TestFixtureAttribute()

    Default constructor

    Declaration
    public TestFixtureAttribute()

    TestFixtureAttribute(params object[])

    Construct with a object[] representing a set of arguments. The arguments may later be separated into type arguments and constructor arguments.

    Declaration
    public TestFixtureAttribute(params object[] arguments)
    Parameters
    Type Name Description
    object[] arguments

    Properties

    Arguments

    The arguments originally provided to the attribute

    Declaration
    public object[] Arguments { get; }
    Property Value
    Type Description
    object[]

    Author

    The author of this fixture

    Declaration
    public string Author { get; set; }
    Property Value
    Type Description
    string

    Category

    Gets and sets the category for this fixture. May be a comma-separated list of categories.

    Declaration
    public string Category { get; set; }
    Property Value
    Type Description
    string

    Description

    Descriptive text for this fixture

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    string

    Explicit

    Gets or sets a value indicating whether this NUnit.Framework.TestFixtureAttribute is explicit.

    Declaration
    public bool Explicit { get; set; }
    Property Value
    Type Description
    bool

    true if explicit; otherwise, false.

    Ignore

    Gets or sets the ignore reason. May set RunState as a side effect.

    Declaration
    public string Ignore { get; set; }
    Property Value
    Type Description
    string

    The ignore reason.

    IgnoreReason

    Gets or sets the ignore reason. When set to a non-null non-empty value, the test is marked as ignored.

    Declaration
    public string IgnoreReason { get; set; }
    Property Value
    Type Description
    string

    The ignore reason.

    Properties

    Properties pertaining to this fixture

    Declaration
    public IPropertyBag Properties { get; }
    Property Value
    Type Description
    IPropertyBag

    Reason

    Gets or sets the reason for not running the fixture.

    Declaration
    public string Reason { get; set; }
    Property Value
    Type Description
    string

    The reason.

    RunState

    Gets or sets the RunState of this test fixture.

    Declaration
    public RunState RunState { get; }
    Property Value
    Type Description
    RunState

    TestName

    Gets or sets the name of the test.

    Declaration
    public string TestName { get; set; }
    Property Value
    Type Description
    string

    The name of the test.

    TestOf

    The type that this fixture is testing

    Declaration
    public Type TestOf { get; set; }
    Property Value
    Type Description
    Type

    TypeArgs

    Get or set the type arguments. If not set explicitly, any leading arguments that are Types are taken as type arguments.

    Declaration
    public Type[] TypeArgs { get; set; }
    Property Value
    Type Description
    Type[]

    Methods

    BuildFrom(ITypeInfo)

    Builds a single test fixture from the specified type.

    Declaration
    public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo)
    Parameters
    Type Name Description
    ITypeInfo typeInfo
    Returns
    Type Description
    IEnumerable<TestSuite>

    BuildFrom(ITypeInfo, IPreFilter)

    Builds a single test fixture from the specified type.

    Declaration
    public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo, IPreFilter filter)
    Parameters
    Type Name Description
    ITypeInfo typeInfo

    The type info of the fixture to be used.

    IPreFilter filter

    Filter used to select methods as tests.

    Returns
    Type Description
    IEnumerable<TestSuite>

    Implements

    NUnit.Framework.Interfaces.IFixtureBuilder2
    NUnit.Framework.Interfaces.IFixtureBuilder
    NUnit.Framework.Interfaces.ITestFixtureData
    NUnit.Framework.Interfaces.ITestData
    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.