Interface IAssertionScope
Defines a scope for grouping multiple assertions, allowing for collective evaluation and reporting of assertion results.
Inherited Members
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 SourceHasFailuresInScope
Gets a count of pending failures (from Multiple Assert)
Declaration
bool HasFailuresInScope { get; }
Property Value
| Type | Description |
|---|---|
| bool |