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 SourceAggregateException(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. |
Exception()
Tests whether the method invocation throws any exception.
Declaration
IExceptionTestBuilder Exception()
Returns
Type | Description |
---|---|
IExceptionTestBuilder | Test builder of IExceptionTestBuilder type. |