Interface IActionResultTestBuilder<TActionResult>
Used for testing the action and its result.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Actions
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IActionResultTestBuilder<TActionResult> : IBaseTestBuilderWithActionResult<TActionResult>, IBaseTestBuilderWithInvokedAction, IBaseTestBuilderWithAction, IBaseTestBuilderWithComponent, IBaseTestBuilder
Type Parameters
Name | Description |
---|---|
TActionResult | Type of action result to be tested. |
Methods
| Improve this Doc View SourceShouldHave()
Used for testing the action's additional data - action attributes, HTTP response, view bag and more.
Declaration
IShouldHaveTestBuilder<TActionResult> ShouldHave()
Returns
Type | Description |
---|---|
IShouldHaveTestBuilder<TActionResult> | Test builder of IShouldHaveTestBuilder<TActionResult> type. |
ShouldReturn()
Used for testing returned action result.
Declaration
IShouldReturnTestBuilder<TActionResult> ShouldReturn()
Returns
Type | Description |
---|---|
IShouldReturnTestBuilder<TActionResult> | Test builder of IShouldReturnTestBuilder<TActionResult>. |
ShouldThrow()
Used for testing whether the action throws exception.
Declaration
IShouldThrowTestBuilder ShouldThrow()
Returns
Type | Description |
---|---|
IShouldThrowTestBuilder | Test builder of IShouldThrowTestBuilder. |