C# Class FluentAssertions.Mvc.ActionResultAssertions

Inheritance: ObjectAssertions
Mostra file Open project: kevinkuszyk/FluentAssertions.MVC

Public Methods

Method Description
ActionResultAssertions ( ActionResult subject ) : FluentAssertions.Primitives

Initializes a new instance of the T:ActionResultAssertions class.

ActionResultAssertions ( IActionResult subject ) : FluentAssertions.Primitives
BeContentResult ( ) : ContentResultAssertions

Asserts that the subject is a ContentResult.

BeContentResult ( string reason ) : ContentResultAssertions

Asserts that the subject is a ContentResult.

BeEmptyResult ( ) : EmptyResult

Asserts that the subject is an EmptyResult.

BeEmptyResult ( string reason ) : EmptyResult

Asserts that the subject is an EmptyResult.

BePartialViewResult ( ) : PartialViewResultAssertions

Asserts that the subject is a PartialViewResult.

BePartialViewResult ( string reason ) : PartialViewResultAssertions

Asserts that the subject is a PartialViewResult.

BeRedirectResult ( ) : RedirectResultAssertions

Asserts that the subject is a RedirectResult.

BeRedirectResult ( string reason ) : RedirectResultAssertions

Asserts that the subject is a RedirectResult.

BeRedirectToRouteResult ( ) : RedirectToRouteAssertions

Asserts that the subject is a RedirectToRouteResult.

BeRedirectToRouteResult ( string reason ) : RedirectToRouteAssertions

Asserts that the subject is a RedirectToRouteResult.

BeViewResult ( ) : ViewResultAssertions

Asserts that the subject is a ViewResult.

BeViewResult ( string reason ) : ViewResultAssertions

Asserts that the subject is a ViewResult.

Method Details

ActionResultAssertions() public method

Initializes a new instance of the T:ActionResultAssertions class.
public ActionResultAssertions ( ActionResult subject ) : FluentAssertions.Primitives
subject ActionResult
return FluentAssertions.Primitives

ActionResultAssertions() public method

public ActionResultAssertions ( IActionResult subject ) : FluentAssertions.Primitives
subject IActionResult
return FluentAssertions.Primitives

BeContentResult() public method

Asserts that the subject is a ContentResult.
public BeContentResult ( ) : ContentResultAssertions
return ContentResultAssertions

BeContentResult() public method

Asserts that the subject is a ContentResult.
public BeContentResult ( string reason ) : ContentResultAssertions
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
return ContentResultAssertions

BeEmptyResult() public method

Asserts that the subject is an EmptyResult.
public BeEmptyResult ( ) : EmptyResult
return EmptyResult

BeEmptyResult() public method

Asserts that the subject is an EmptyResult.
public BeEmptyResult ( string reason ) : EmptyResult
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
return EmptyResult

BePartialViewResult() public method

Asserts that the subject is a PartialViewResult.
public BePartialViewResult ( ) : PartialViewResultAssertions
return PartialViewResultAssertions

BePartialViewResult() public method

Asserts that the subject is a PartialViewResult.
public BePartialViewResult ( string reason ) : PartialViewResultAssertions
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
return PartialViewResultAssertions

BeRedirectResult() public method

Asserts that the subject is a RedirectResult.
public BeRedirectResult ( ) : RedirectResultAssertions
return RedirectResultAssertions

BeRedirectResult() public method

Asserts that the subject is a RedirectResult.
public BeRedirectResult ( string reason ) : RedirectResultAssertions
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
return RedirectResultAssertions

BeRedirectToRouteResult() public method

Asserts that the subject is a RedirectToRouteResult.
public BeRedirectToRouteResult ( ) : RedirectToRouteAssertions
return RedirectToRouteAssertions

BeRedirectToRouteResult() public method

Asserts that the subject is a RedirectToRouteResult.
public BeRedirectToRouteResult ( string reason ) : RedirectToRouteAssertions
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
return RedirectToRouteAssertions

BeViewResult() public method

Asserts that the subject is a ViewResult.
public BeViewResult ( ) : ViewResultAssertions
return ViewResultAssertions

BeViewResult() public method

Asserts that the subject is a ViewResult.
public BeViewResult ( string reason ) : ViewResultAssertions
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
return ViewResultAssertions