MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

Interface IShouldThrowTestBuilder

Used for testing whether the method invocation throws exception.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IShouldThrowTestBuilder

Methods

| Improve this Doc View Source

AggregateException(Nullable<Int32>)

Tests whether the method invocation throws System.AggregateException.

Declaration
IAggregateExceptionTestBuilder AggregateException(int ? withNumberOfInnerExceptions = null)
Parameters
Type Name Description
System.Nullable<System.Int32> withNumberOfInnerExceptions

Optional expected number of total inner exceptions.

Returns
Type Description
IAggregateExceptionTestBuilder

Test builder of IAggregateExceptionTestBuilder type.

| Improve this Doc View Source

Exception()

Tests whether the method invocation throws any exception.

Declaration
IExceptionTestBuilder Exception()
Returns
Type Description
IExceptionTestBuilder

Test builder of IExceptionTestBuilder type.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX