Interface IVoidActionResultTestBuilder
Used for testing void actions.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Actions
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IVoidActionResultTestBuilder : IBaseTestBuilderWithInvokedAction, IBaseTestBuilderWithAction, IBaseTestBuilderWithComponent, IBaseTestBuilder
Methods
| Improve this Doc View SourceShouldHave()
Used for testing the action's additional data - action attributes, HTTP response, view bag and more.
Declaration
IShouldHaveTestBuilder<VoidMethodResult> ShouldHave()
Returns
Type | Description |
---|---|
IShouldHaveTestBuilder<MyTested.AspNetCore.Mvc.Internal.VoidMethodResult> | Test builder of IShouldHaveTestBuilder<TActionResult> type. |
ShouldReturnEmpty()
Tests whether the action result is void.
Declaration
IBaseTestBuilderWithInvokedAction ShouldReturnEmpty()
Returns
Type | Description |
---|---|
IBaseTestBuilderWithInvokedAction | Test builder of IBaseTestBuilderWithInvokedAction type. |
ShouldThrow()
Used for testing whether the action throws exception.
Declaration
IShouldThrowTestBuilder ShouldThrow()
Returns
Type | Description |
---|---|
IShouldThrowTestBuilder | Test builder of IShouldThrowTestBuilder type. |