@@ -56,7 +56,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForCollectionN
56
56
57
57
Assert . Null ( operation . RequestBody ) ;
58
58
if ( enablePagination )
59
- Assert . Single ( operation . Extensions ) ;
59
+ Assert . Equal ( 2 , operation . Extensions . Count ) ; //deprecated, pagination
60
60
61
61
Assert . Equal ( 2 , operation . Responses . Count ) ;
62
62
Assert . Equal ( new string [ ] { "200" , "default" } , operation . Responses . Select ( e => e . Key ) ) ;
@@ -114,7 +114,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForCollectionN
114
114
115
115
Assert . Null ( operation . RequestBody ) ;
116
116
if ( enablePagination )
117
- Assert . Empty ( operation . Extensions ) ;
117
+ Assert . Single ( operation . Extensions ) ; //deprecated
118
118
119
119
Assert . Equal ( 2 , operation . Responses . Count ) ;
120
120
Assert . Equal ( new string [ ] { "200" , "default" } , operation . Responses . Select ( e => e . Key ) ) ;
@@ -167,7 +167,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForEntitySet(b
167
167
168
168
Assert . Null ( operation . RequestBody ) ;
169
169
if ( enablePagination )
170
- Assert . Single ( operation . Extensions ) ;
170
+ Assert . Equal ( 2 , operation . Extensions . Count ) ;
171
171
172
172
Assert . Equal ( 2 , operation . Responses . Count ) ;
173
173
Assert . Equal ( new string [ ] { "200" , "default" } , operation . Responses . Select ( e => e . Key ) ) ;
@@ -222,7 +222,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForEntitySetId
222
222
223
223
Assert . Null ( operation . RequestBody ) ;
224
224
if ( enablePagination )
225
- Assert . Empty ( operation . Extensions ) ;
225
+ Assert . Single ( operation . Extensions ) ; // deprecated
226
226
227
227
Assert . Equal ( 2 , operation . Responses . Count ) ;
228
228
Assert . Equal ( new string [ ] { "200" , "default" } , operation . Responses . Select ( e => e . Key ) ) ;
@@ -279,7 +279,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleNavig
279
279
280
280
Assert . Null ( operation . RequestBody ) ;
281
281
if ( enablePagination )
282
- Assert . Empty ( operation . Extensions ) ;
282
+ Assert . Single ( operation . Extensions ) ; //deprecated
283
283
284
284
Assert . Equal ( 2 , operation . Responses . Count ) ;
285
285
Assert . Equal ( new string [ ] { "200" , "default" } , operation . Responses . Select ( e => e . Key ) ) ;
@@ -332,7 +332,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleton(b
332
332
333
333
Assert . Null ( operation . RequestBody ) ;
334
334
if ( enablePagination )
335
- Assert . Empty ( operation . Extensions ) ;
335
+ Assert . Single ( operation . Extensions ) ; //deprecated
336
336
337
337
Assert . Equal ( 2 , operation . Responses . Count ) ;
338
338
Assert . Equal ( new string [ ] { "200" , "default" } , operation . Responses . Select ( e => e . Key ) ) ;
0 commit comments