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

Interface IExceptionTestBuilder

Used for testing expected System.Exception.

Inherited Members
IBaseExceptionTestBuilder.WithMessage()
IBaseExceptionTestBuilder.WithMessage(String)
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Action<TComponent>)
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Func<TComponent, Boolean>)
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 Source

OfType<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.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX