Search Results for

    Show / Hide Table of Contents

    Class MultipleAssertException

    Thrown when an assertion failed.

    Inheritance
    object
    Exception
    ResultStateException
    MultipleAssertException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetType()
    Exception.TargetSite
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.StackTrace
    Exception.SerializeObjectState
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    public class MultipleAssertException : ResultStateException, ISerializable

    Constructors

    View Source

    MultipleAssertException(ITestResult)

    Construct based on the TestResult so far. This is the constructor used normally, when exiting the multiple assert block with failures. Not used internally but provided to facilitate debugging.

    Declaration
    public MultipleAssertException(ITestResult testResult)
    Parameters
    Type Name Description
    ITestResult testResult

    The current result, up to this point. The result is not used internally by NUnit but is provided to facilitate debugging.

    Properties

    View Source

    ResultState

    Gets the ResultState provided by this exception.

    Declaration
    public override ResultState ResultState { get; }
    Property Value
    Type Description
    ResultState
    Overrides
    ResultStateException.ResultState
    View Source

    TestResult

    Gets the ITestResult of this test at the point the exception was thrown,

    Declaration
    public ITestResult TestResult { get; }
    Property Value
    Type Description
    ITestResult

    Implements

    ISerializable
    • 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