1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
- #if NETSTANDARD1_6
6
- using Microsoft . AspNetCore . Routing ;
7
- #else
8
- using System . Web . Routing ;
9
- #endif
10
- using FluentAssertions ;
1
+ using System . Web . Routing ;
11
2
using FluentAssertions . Execution ;
12
3
using FluentAssertions . Primitives ;
13
4
using System . Diagnostics ;
@@ -80,16 +71,16 @@ public RouteDataAssertions HaveDataToken(string key, object expectedValue, strin
80
71
var subjectTyped = Subject as RouteData ;
81
72
82
73
Execute . Assertion
83
- . ForCondition ( subjectTyped . DataTokens . ContainsKey ( key ) )
84
- . BecauseOf ( reason , reasonArgs )
85
- . FailWith ( FailureMessages . RouteData_DataTokens_ContainsKey , key ) ;
74
+ . ForCondition ( subjectTyped . DataTokens . ContainsKey ( key ) )
75
+ . BecauseOf ( reason , reasonArgs )
76
+ . FailWith ( FailureMessages . RouteData_DataTokens_ContainsKey , key ) ;
86
77
87
78
var actualValue = subjectTyped . DataTokens [ key ] ;
88
79
89
80
Execute . Assertion
90
- . ForCondition ( expectedValue . Equals ( actualValue ) )
91
- . BecauseOf ( reason , reasonArgs )
92
- . FailWith ( FailureMessages . RouteData_DataTokens_HaveValue , key , expectedValue , actualValue ) ;
81
+ . ForCondition ( expectedValue . Equals ( actualValue ) )
82
+ . BecauseOf ( reason , reasonArgs )
83
+ . FailWith ( FailureMessages . RouteData_DataTokens_HaveValue , key , expectedValue , actualValue ) ;
93
84
94
85
return this ;
95
86
}
@@ -111,16 +102,16 @@ public RouteDataAssertions HaveValue(string key, object expectedValue, string re
111
102
var subjectTyped = Subject as RouteData ;
112
103
113
104
Execute . Assertion
114
- . ForCondition ( subjectTyped . Values . ContainsKey ( key ) )
115
- . BecauseOf ( reason , reasonArgs )
116
- . FailWith ( FailureMessages . RouteData_Values_ContainsKey , key ) ;
105
+ . ForCondition ( subjectTyped . Values . ContainsKey ( key ) )
106
+ . BecauseOf ( reason , reasonArgs )
107
+ . FailWith ( FailureMessages . RouteData_Values_ContainsKey , key ) ;
117
108
118
109
var actualValue = subjectTyped . Values [ key ] ;
119
110
120
111
Execute . Assertion
121
- . ForCondition ( expectedValue . Equals ( actualValue ) )
122
- . BecauseOf ( reason , reasonArgs )
123
- . FailWith ( FailureMessages . RouteData_Values_HaveValue , key , expectedValue , actualValue ) ;
112
+ . ForCondition ( expectedValue . Equals ( actualValue ) )
113
+ . BecauseOf ( reason , reasonArgs )
114
+ . FailWith ( FailureMessages . RouteData_Values_HaveValue , key , expectedValue , actualValue ) ;
124
115
125
116
return this ;
126
117
}
0 commit comments