C# 클래스 FluentAssertions.Mvc.RedirectResultAssertions

Contains a number of methods to assert that a RedirectResult is in the expected state.
상속: ObjectAssertions
파일 보기 프로젝트 열기: kevinkuszyk/FluentAssertions.MVC

공개 메소드들

메소드 설명
RedirectResultAssertions ( System.Web.Mvc.RedirectResult subject ) : System

Initializes a new instance of the T:RedirectResultAssertions class.

WithPermanent ( bool expectedPermanent, string reason = "" ) : RedirectResultAssertions

Asserts that the redirect is permanent.

WithUrl ( string expectedUrl, string reason = "" ) : RedirectResultAssertions

Asserts that the url is the expected url.

메소드 상세

RedirectResultAssertions() 공개 메소드

Initializes a new instance of the T:RedirectResultAssertions class.
public RedirectResultAssertions ( System.Web.Mvc.RedirectResult subject ) : System
subject System.Web.Mvc.RedirectResult
리턴 System

WithPermanent() 공개 메소드

Asserts that the redirect is permanent.
public WithPermanent ( bool expectedPermanent, string reason = "" ) : RedirectResultAssertions
expectedPermanent bool Should the expected redirect be permanent.
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. ///
리턴 RedirectResultAssertions

WithUrl() 공개 메소드

Asserts that the url is the expected url.
public WithUrl ( string expectedUrl, string reason = "" ) : RedirectResultAssertions
expectedUrl string The expected url.
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. ///
리턴 RedirectResultAssertions