Interface IExceptionTestBuilder
Used for testing expected System.Exception.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IExceptionTestBuilder : IBaseExceptionTestBuilder, IBaseTestBuilderWithComponent, IBaseTestBuilder
Methods
| Improve this Doc View SourceOfType<TException>()
Tests whether certain type of System.Exception is thrown from the invoked method.
Declaration
IAndExceptionTestBuilder OfType<TException>()
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions.IAndExceptionTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions.IAndExceptionTestBuilder. |
Type Parameters
Name | Description |
---|---|
TException | Type of the expected System.Exception. |