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

Interface IVoidActionResultTestBuilder

Used for testing void actions.

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

ShouldHave()

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.

| Improve this Doc View Source

ShouldReturnEmpty()

Tests whether the action result is void.

Declaration
IBaseTestBuilderWithInvokedAction ShouldReturnEmpty()
Returns
Type Description
IBaseTestBuilderWithInvokedAction

Test builder of IBaseTestBuilderWithInvokedAction type.

| Improve this Doc View Source

ShouldThrow()

Used for testing whether the action throws exception.

Declaration
IShouldThrowTestBuilder ShouldThrow()
Returns
Type Description
IShouldThrowTestBuilder

Test builder of IShouldThrowTestBuilder type.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX