Search Results for

    Show / Hide Table of Contents

    Class ExecutionHookMethodsAttribute

    Abstract base attribute class for defining execution hooks methods.

    Inheritance
    object
    Attribute
    NUnitAttribute
    ExecutionHookMethodsAttribute
    ExecutionHookAttribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    public abstract class ExecutionHookMethodsAttribute : NUnitAttribute

    Constructors

    View Source

    ExecutionHookMethodsAttribute()

    Declaration
    protected ExecutionHookMethodsAttribute()

    Methods

    View Source

    AfterEverySetUpHook(HookData)

    Method that is called immediately after every [SetUp] or [OneTimeSetUp] method is executed. Override this to implement custom logic to run after the setup.

    Declaration
    public virtual void AfterEverySetUpHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    AfterEveryTearDownHook(HookData)

    Method that is called immediately after every [TearDown] or [OneTimeTearDown] method is executed. Override this to implement custom logic to run after the teardown.

    Declaration
    public virtual void AfterEveryTearDownHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    AfterTestActionAfterTestHook(HookData)

    Method that is called immediately after the AfterTest(ITest test) method of a ITestAction is executed

    Declaration
    public virtual void AfterTestActionAfterTestHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    AfterTestActionBeforeTestHook(HookData)

    Method that is called immediately before the AfterTest(ITest test) method of a ITestAction is executed

    Declaration
    public virtual void AfterTestActionBeforeTestHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    AfterTestHook(HookData)

    Method that is called immediately after the test is executed. Override this to implement custom logic to run after the test.

    Declaration
    public virtual void AfterTestHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    BeforeEverySetUpHook(HookData)

    Method that is called immediately before every [SetUp] or [OneTimeSetUp] method is executed. Override this to implement custom logic to run before the test.

    Declaration
    public virtual void BeforeEverySetUpHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    BeforeEveryTearDownHook(HookData)

    Method that is called immediately before every [TearDown] or [OneTimeTearDown] method is executed. Override this to implement custom logic to run before the teardown.

    Declaration
    public virtual void BeforeEveryTearDownHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    BeforeTestActionAfterTestHook(HookData)

    Method that is called immediately after the BeforeTest(ITest test) method of a ITestAction is executed

    Declaration
    public virtual void BeforeTestActionAfterTestHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    BeforeTestActionBeforeTestHook(HookData)

    Method that is called immediately before the BeforeTest(ITest test) method of a ITestAction is executed

    Declaration
    public virtual void BeforeTestActionBeforeTestHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    View Source

    BeforeTestHook(HookData)

    Method that is called immediately before the test is executed. Override this to implement custom logic to run before the test.

    Declaration
    public virtual void BeforeTestHook(HookData hookData)
    Parameters
    Type Name Description
    HookData hookData

    The current NUnit.Framework.Internal.ExecutionHooks.HookData for the test.

    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0