C# 클래스 FluentAssertions.Mvc.RouteDataAssertions

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

공개 메소드들

메소드 설명
HaveAction ( string expectedActionName, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected action name.

HaveController ( string expectedControllerName, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected controller name.

HaveDataToken ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected data token.

HaveValue ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected value.

RouteDataAssertions ( RouteData subject ) : System

Initializes a new instance of the T:RouteDataAssertions class.

메소드 상세

HaveAction() 공개 메소드

Asserts that the route data has the expected action name.
public HaveAction ( string expectedActionName, string reason = "" ) : RouteDataAssertions
expectedActionName string The expected action name.
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. ///
리턴 RouteDataAssertions

HaveController() 공개 메소드

Asserts that the route data has the expected controller name.
public HaveController ( string expectedControllerName, string reason = "" ) : RouteDataAssertions
expectedControllerName string The expected controller name.
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. ///
리턴 RouteDataAssertions

HaveDataToken() 공개 메소드

Asserts that the route data has the expected data token.
public HaveDataToken ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions
key string The expected data token key value.
expectedValue object The expected data token value.
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. ///
리턴 RouteDataAssertions

HaveValue() 공개 메소드

Asserts that the route data has the expected value.
public HaveValue ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions
key string The expected key.
expectedValue object The expected value.
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. ///
리턴 RouteDataAssertions

RouteDataAssertions() 공개 메소드

Initializes a new instance of the T:RouteDataAssertions class.
public RouteDataAssertions ( RouteData subject ) : System
subject RouteData
리턴 System