File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/JsonApiDotNetCoreExampleTests/Acceptance Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,11 @@ public async Task Can_Sort_TodoItems_By_Ordinal_Ascending()
157
157
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
158
158
Assert . NotEmpty ( deserializedBody ) ;
159
159
160
- var priorOrdinal = 0 ;
160
+ long priorOrdinal = 0 ;
161
161
foreach ( var todoItemResult in deserializedBody )
162
162
{
163
163
Assert . True ( todoItemResult . Ordinal > priorOrdinal ) ;
164
+ priorOrdinal = todoItemResult . Ordinal ;
164
165
}
165
166
}
166
167
@@ -198,10 +199,11 @@ public async Task Can_Sort_TodoItems_By_Ordinal_Descending()
198
199
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
199
200
Assert . NotEmpty ( deserializedBody ) ;
200
201
201
- var priorOrdinal = numberOfItems + 1 ;
202
+ long priorOrdinal = numberOfItems + 1 ;
202
203
foreach ( var todoItemResult in deserializedBody )
203
204
{
204
205
Assert . True ( todoItemResult . Ordinal < priorOrdinal ) ;
206
+ priorOrdinal = todoItemResult . Ordinal ;
205
207
}
206
208
}
207
209
You can’t perform that action at this time.
0 commit comments