Метод | Описание | |
---|---|---|
HaveAction ( string expectedActionName, string reason = "" ) : |
Asserts that the route data has the expected action name.
|
|
HaveController ( string expectedControllerName, string reason = "" ) : |
Asserts that the route data has the expected controller name.
|
|
HaveDataToken ( string key, object expectedValue, string reason = "" ) : |
Asserts that the route data has the expected data token.
|
|
HaveValue ( string key, object expectedValue, string reason = "" ) : |
Asserts that the route data has the expected value.
|
|
RouteDataAssertions ( RouteData subject ) : System |
Initializes a new instance of the T:RouteDataAssertions class.
|
public HaveAction ( string expectedActionName, string reason = "" ) : |
||
expectedActionName | string | The expected action name. |
reason | string |
/// A formatted phrase as is supported by |
Результат |
public HaveController ( string expectedControllerName, string reason = "" ) : |
||
expectedControllerName | string | The expected controller name. |
reason | string |
/// A formatted phrase as is supported by |
Результат |
public HaveDataToken ( string key, object expectedValue, string reason = "" ) : |
||
key | string | The expected data token key value. |
expectedValue | object | The expected data token value. |
reason | string |
/// A formatted phrase as is supported by |
Результат |
public HaveValue ( string key, object expectedValue, string reason = "" ) : |
||
key | string | The expected key. |
expectedValue | object | The expected value. |
reason | string |
/// A formatted phrase as is supported by |
Результат |
public RouteDataAssertions ( RouteData subject ) : System | ||
subject | RouteData | |
Результат | System |