Search Results for

    Show / Hide Table of Contents

    Class RepeatAttribute.RepeatedTestCommand

    The test command for the RepeatAttribute

    Inheritance
    object
    TestCommand
    DelegatingTestCommand
    RepeatAttribute.RepeatedTestCommand
    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 RepeatAttribute.RepeatedTestCommand : DelegatingTestCommand

    Constructors

    View Source

    RepeatedTestCommand(TestCommand, int, bool)

    Initializes a new instance of the RepeatAttribute.RepeatedTestCommand class.

    Declaration
    public RepeatedTestCommand(TestCommand innerCommand, int repeatCount, bool stopOnFailure)
    Parameters
    Type Name Description
    TestCommand innerCommand

    The inner command.

    int repeatCount

    The number of repetitions

    bool stopOnFailure

    Whether to stop when a test is not successful or not

    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