Interface IBaseExceptionTestBuilder
Used for testing expected System.Exception messages.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IBaseExceptionTestBuilder : IBaseTestBuilderWithComponent, IBaseTestBuilder
Methods
| Improve this Doc View SourceWithMessage()
Tests System.Exception.Message using test builder.
Declaration
IExceptionMessageTestBuilder WithMessage()
Returns
Type | Description |
---|---|
IExceptionMessageTestBuilder | Test builder of IExceptionMessageTestBuilder type. |
WithMessage(String)
Tests System.Exception.Message whether it is equal to the provided message as string.
Declaration
IAndExceptionTestBuilder WithMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Expected System.Exception.Message as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions.IAndExceptionTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.CaughtExceptions.IAndExceptionTestBuilder. |