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()
157157 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
158158 Assert . NotEmpty ( deserializedBody ) ;
159159
160- var priorOrdinal = 0 ;
160+ long priorOrdinal = 0 ;
161161 foreach ( var todoItemResult in deserializedBody )
162162 {
163163 Assert . True ( todoItemResult . Ordinal > priorOrdinal ) ;
164+ priorOrdinal = todoItemResult . Ordinal ;
164165 }
165166 }
166167
@@ -198,10 +199,11 @@ public async Task Can_Sort_TodoItems_By_Ordinal_Descending()
198199 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
199200 Assert . NotEmpty ( deserializedBody ) ;
200201
201- var priorOrdinal = numberOfItems + 1 ;
202+ long priorOrdinal = numberOfItems + 1 ;
202203 foreach ( var todoItemResult in deserializedBody )
203204 {
204205 Assert . True ( todoItemResult . Ordinal < priorOrdinal ) ;
206+ priorOrdinal = todoItemResult . Ordinal ;
205207 }
206208 }
207209
You can’t perform that action at this time.
0 commit comments