Search Results for

    Show / Hide Table of Contents

    Class RetryAttribute.RetryCommand

    The test command for the RetryAttribute

    Inheritance
    object
    TestCommand
    DelegatingTestCommand
    RetryAttribute.RetryCommand
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    public class RetryAttribute.RetryCommand : DelegatingTestCommand

    Constructors

    View Source

    RetryCommand(TestCommand, int)

    Initializes a new instance of the RetryAttribute.RetryCommand class.

    Declaration
    public RetryCommand(TestCommand innerCommand, int tryCount)
    Parameters
    Type Name Description
    TestCommand innerCommand

    The inner command.

    int tryCount

    The maximum number of repetitions

    Methods

    View Source

    Execute(TestExecutionContext)

    Runs the test, saving a TestResult in the supplied TestExecutionContext.

    Declaration
    public override TestResult Execute(TestExecutionContext context)
    Parameters
    Type Name Description
    TestExecutionContext context

    The context in which the test should run.

    Returns
    Type Description
    TestResult

    A TestResult

    Overrides
    NUnit.Framework.Internal.Commands.TestCommand.Execute(NUnit.Framework.Internal.TestExecutionContext)
    • 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