Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class LuceneTestCase.TestFixtureAttribute

    Marks the class as a TestFixture.

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

    Constructors

    | Improve this Doc View Source

    TestFixtureAttribute()

    Default constructor

    Declaration
    public TestFixtureAttribute()
    | Improve this Doc View Source

    TestFixtureAttribute(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
    System.Object[] arguments

    Properties

    | Improve this Doc View Source

    Arguments

    The arguments originally provided to the attribute

    Declaration
    public object[] Arguments { get; }
    Property Value
    Type Description
    System.Object[]
    | Improve this Doc View Source

    Author

    The author of this fixture

    Declaration
    public string Author { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    Description

    Descriptive text for this fixture

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Explicit

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

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

    true if explicit; otherwise, false.

    | Improve this Doc View Source

    Ignore

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

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

    The ignore reason.

    | Improve this Doc View Source

    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
    System.String

    The ignore reason.

    | Improve this Doc View Source

    Properties

    Properties pertaining to this fixture

    Declaration
    public IPropertyBag Properties { get; }
    Property Value
    Type Description
    NUnit.Framework.Interfaces.IPropertyBag
    | Improve this Doc View Source

    Reason

    Gets or sets the reason for not running the fixture.

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

    The reason.

    | Improve this Doc View Source

    RunState

    Gets or sets the RunState of this test fixture.

    Declaration
    public RunState RunState { get; }
    Property Value
    Type Description
    NUnit.Framework.Interfaces.RunState
    | Improve this Doc View Source

    TestName

    Gets or sets the name of the test.

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

    The name of the test.

    | Improve this Doc View Source

    TestOf

    The type that this fixture is testing

    Declaration
    public Type TestOf { get; set; }
    Property Value
    Type Description
    System.Type
    | Improve this Doc View Source

    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
    System.Type[]

    Methods

    | Improve this Doc View Source

    BuildFrom(ITypeInfo)

    Builds a single test fixture from the specified type.

    Declaration
    public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo)
    Parameters
    Type Name Description
    NUnit.Framework.Interfaces.ITypeInfo typeInfo
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<NUnit.Framework.Internal.TestSuite>
    | Improve this Doc View Source

    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
    NUnit.Framework.Interfaces.ITypeInfo typeInfo

    The type info of the fixture to be used.

    NUnit.Framework.Interfaces.IPreFilter filter

    Filter used to select methods as tests.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<NUnit.Framework.Internal.TestSuite>

    Implements

    NUnit.Framework.Interfaces.IFixtureBuilder2
    NUnit.Framework.Interfaces.IFixtureBuilder
    NUnit.Framework.Interfaces.ITestFixtureData
    NUnit.Framework.Interfaces.ITestData
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.