Search Results for

    Show / Hide Table of Contents

    Interface IAssertionScope

    Defines a scope for grouping multiple assertions, allowing for collective evaluation and reporting of assertion results.

    Inherited Members
    IDisposable.Dispose()
    Namespace: NUnit.Framework.Interfaces
    Assembly: nunit.framework.dll
    Syntax
    public interface IAssertionScope : IDisposable
    Remarks

    An assertion scope enables aggregating assertion failures within a defined context, which can be useful for reporting multiple failures together rather than stopping at the first failure. Implementations may provide additional functionality such as customizing failure messages or controlling assertion behavior within the scope.

    Properties

    View Source

    HasFailuresInScope

    Gets a count of pending failures (from Multiple Assert)

    Declaration
    bool HasFailuresInScope { get; }
    Property Value
    Type Description
    bool
    • 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