Search Results for

    Show / Hide Table of Contents

    Interface ITestAction

    When implemented by an attribute, this interface implemented to provide actions to execute before and after tests.

    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    public interface ITestAction

    Properties

    View Source

    Targets

    Provides the target for the action attribute

    Declaration
    ActionTargets Targets { get; }
    Property Value
    Type Description
    ActionTargets

    The target for the action attribute

    Methods

    View Source

    AfterTest(ITest)

    Executed after each test is run

    Declaration
    void AfterTest(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test that has just been run.

    View Source

    BeforeTest(ITest)

    Executed before each test is run

    Declaration
    void BeforeTest(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test that is going to be run.

    • 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