@@ -44,7 +44,8 @@ public void ContainingEntryWithKeyShouldThrowExceptionWithIncorrectEntry()
44
44
. Instance ( )
45
45
. Calling ( c => c . AddMemoryCacheAction ( ) )
46
46
. ShouldHave ( )
47
- . MemoryCache ( cache => cache . ContainingEntryWithKey ( "invalid" ) )
47
+ . MemoryCache ( cache => cache
48
+ . ContainingEntryWithKey ( "invalid" ) )
48
49
. AndAlso ( )
49
50
. ShouldReturn ( )
50
51
. Ok ( ) ;
@@ -59,7 +60,8 @@ public void ContainingEntryWithValueShouldNotThrowExceptionWithCorrectEntry()
59
60
. Instance ( )
60
61
. Calling ( c => c . AddMemoryCacheAction ( ) )
61
62
. ShouldHave ( )
62
- . MemoryCache ( cache => cache . ContainingEntryWithValue ( "value" ) )
63
+ . MemoryCache ( cache => cache
64
+ . ContainingEntryWithValue ( "value" ) )
63
65
. AndAlso ( )
64
66
. ShouldReturn ( )
65
67
. Ok ( ) ;
@@ -75,7 +77,8 @@ public void ContainingEntryWithValueShouldThrowExceptionWithIncorrectEntry()
75
77
. Instance ( )
76
78
. Calling ( c => c . AddMemoryCacheAction ( ) )
77
79
. ShouldHave ( )
78
- . MemoryCache ( cache => cache . ContainingEntryWithValue ( "invalid" ) )
80
+ . MemoryCache ( cache => cache
81
+ . ContainingEntryWithValue ( "invalid" ) )
79
82
. AndAlso ( )
80
83
. ShouldReturn ( )
81
84
. Ok ( ) ;
@@ -90,7 +93,8 @@ public void ContainingEntryOfTypeShouldNotThrowExceptionWithCorrectEntryForGener
90
93
. Instance ( )
91
94
. Calling ( c => c . AddMemoryCacheAction ( ) )
92
95
. ShouldHave ( )
93
- . MemoryCache ( cache => cache . ContainingEntryOfType < string > ( ) )
96
+ . MemoryCache ( cache => cache
97
+ . ContainingEntryOfType < string > ( ) )
94
98
. AndAlso ( )
95
99
. ShouldReturn ( )
96
100
. Ok ( ) ;
@@ -103,7 +107,8 @@ public void ContainingEntryOfTypeShouldNotThrowExceptionWithCorrectEntry()
103
107
. Instance ( )
104
108
. Calling ( c => c . AddMemoryCacheAction ( ) )
105
109
. ShouldHave ( )
106
- . MemoryCache ( cache => cache . ContainingEntryOfType ( typeof ( string ) ) )
110
+ . MemoryCache ( cache => cache
111
+ . ContainingEntryOfType ( typeof ( string ) ) )
107
112
. AndAlso ( )
108
113
. ShouldReturn ( )
109
114
. Ok ( ) ;
@@ -119,7 +124,8 @@ public void ContainingEntryOfTypeShouldThrowExceptionWithIncorrectEntryForGeneri
119
124
. Instance ( )
120
125
. Calling ( c => c . AddMemoryCacheAction ( ) )
121
126
. ShouldHave ( )
122
- . MemoryCache ( cache => cache . ContainingEntryOfType < int > ( ) )
127
+ . MemoryCache ( cache => cache
128
+ . ContainingEntryOfType < int > ( ) )
123
129
. AndAlso ( )
124
130
. ShouldReturn ( )
125
131
. Ok ( ) ;
@@ -137,7 +143,8 @@ public void ContainingEntryOfTypeShouldThrowExceptionWithIncorrectEntry()
137
143
. Instance ( )
138
144
. Calling ( c => c . AddMemoryCacheAction ( ) )
139
145
. ShouldHave ( )
140
- . MemoryCache ( cache => cache . ContainingEntryOfType ( typeof ( int ) ) )
146
+ . MemoryCache ( cache => cache
147
+ . ContainingEntryOfType ( typeof ( int ) ) )
141
148
. AndAlso ( )
142
149
. ShouldReturn ( )
143
150
. Ok ( ) ;
@@ -152,7 +159,8 @@ public void ContainingEntryOfTypeAndKeyShouldNotThrowExceptionWithCorrectEntryFo
152
159
. Instance ( )
153
160
. Calling ( c => c . AddMemoryCacheAction ( ) )
154
161
. ShouldHave ( )
155
- . MemoryCache ( cache => cache . ContainingEntryOfType < string > ( "test" ) )
162
+ . MemoryCache ( cache => cache
163
+ . ContainingEntryOfType < string > ( "test" ) )
156
164
. AndAlso ( )
157
165
. ShouldReturn ( )
158
166
. Ok ( ) ;
@@ -165,7 +173,8 @@ public void ContainingEntryOfTypeAndKeyShouldNotThrowExceptionWithCorrectEntry()
165
173
. Instance ( )
166
174
. Calling ( c => c . AddMemoryCacheAction ( ) )
167
175
. ShouldHave ( )
168
- . MemoryCache ( cache => cache . ContainingEntryOfType ( "test" , typeof ( string ) ) )
176
+ . MemoryCache ( cache => cache
177
+ . ContainingEntryOfType ( "test" , typeof ( string ) ) )
169
178
. AndAlso ( )
170
179
. ShouldReturn ( )
171
180
. Ok ( ) ;
@@ -181,7 +190,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntryKey
181
190
. Instance ( )
182
191
. Calling ( c => c . AddMemoryCacheAction ( ) )
183
192
. ShouldHave ( )
184
- . MemoryCache ( cache => cache . ContainingEntryOfType < string > ( "invalid" ) )
193
+ . MemoryCache ( cache => cache
194
+ . ContainingEntryOfType < string > ( "invalid" ) )
185
195
. AndAlso ( )
186
196
. ShouldReturn ( )
187
197
. Ok ( ) ;
@@ -199,7 +209,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntryKey
199
209
. Instance ( )
200
210
. Calling ( c => c . AddMemoryCacheAction ( ) )
201
211
. ShouldHave ( )
202
- . MemoryCache ( cache => cache . ContainingEntryOfType ( "invalid" , typeof ( string ) ) )
212
+ . MemoryCache ( cache => cache
213
+ . ContainingEntryOfType ( "invalid" , typeof ( string ) ) )
203
214
. AndAlso ( )
204
215
. ShouldReturn ( )
205
216
. Ok ( ) ;
@@ -217,7 +228,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntryFor
217
228
. Instance ( )
218
229
. Calling ( c => c . AddMemoryCacheAction ( ) )
219
230
. ShouldHave ( )
220
- . MemoryCache ( cache => cache . ContainingEntryOfType < int > ( "test" ) )
231
+ . MemoryCache ( cache => cache
232
+ . ContainingEntryOfType < int > ( "test" ) )
221
233
. AndAlso ( )
222
234
. ShouldReturn ( )
223
235
. Ok ( ) ;
@@ -235,7 +247,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntry()
235
247
. Instance ( )
236
248
. Calling ( c => c . AddMemoryCacheAction ( ) )
237
249
. ShouldHave ( )
238
- . MemoryCache ( cache => cache . ContainingEntryOfType ( "test" , typeof ( int ) ) )
250
+ . MemoryCache ( cache => cache
251
+ . ContainingEntryOfType ( "test" , typeof ( int ) ) )
239
252
. AndAlso ( )
240
253
. ShouldReturn ( )
241
254
. Ok ( ) ;
@@ -250,7 +263,8 @@ public void ContainingEntryShouldNotThrowExceptionWithCorrectEntry()
250
263
. Instance ( )
251
264
. Calling ( c => c . AddMemoryCacheAction ( ) )
252
265
. ShouldHave ( )
253
- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "value" ) )
266
+ . MemoryCache ( cache => cache
267
+ . ContainingEntry ( "test" , "value" ) )
254
268
. AndAlso ( )
255
269
. ShouldReturn ( )
256
270
. Ok ( ) ;
@@ -266,7 +280,8 @@ public void ContainingEntryShouldThrowExceptionWithIncorrectEntryKey()
266
280
. Instance ( )
267
281
. Calling ( c => c . AddMemoryCacheAction ( ) )
268
282
. ShouldHave ( )
269
- . MemoryCache ( cache => cache . ContainingEntry ( "invalid" , "value" ) )
283
+ . MemoryCache ( cache => cache
284
+ . ContainingEntry ( "invalid" , "value" ) )
270
285
. AndAlso ( )
271
286
. ShouldReturn ( )
272
287
. Ok ( ) ;
@@ -284,7 +299,8 @@ public void ContainingEntryShouldThrowExceptionWithIncorrectEntry()
284
299
. Instance ( )
285
300
. Calling ( c => c . AddMemoryCacheAction ( ) )
286
301
. ShouldHave ( )
287
- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "invalid" ) )
302
+ . MemoryCache ( cache => cache
303
+ . ContainingEntry ( "test" , "invalid" ) )
288
304
. AndAlso ( )
289
305
. ShouldReturn ( )
290
306
. Ok ( ) ;
@@ -299,7 +315,8 @@ public void ContainingEntryWithOptionsShouldNotThrowExceptionWithCorrectEntry()
299
315
. Instance ( )
300
316
. Calling ( c => c . AddMemoryCacheAction ( ) )
301
317
. ShouldHave ( )
302
- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
318
+ . MemoryCache ( cache => cache
319
+ . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
303
320
{
304
321
AbsoluteExpiration = new DateTimeOffset ( new DateTime ( 2016 , 1 , 1 , 1 , 1 , 1 , DateTimeKind . Utc ) ) ,
305
322
AbsoluteExpirationRelativeToNow = TimeSpan . FromMinutes ( 1 ) ,
@@ -321,7 +338,8 @@ public void ContainingEntryWithOptionsShouldThrowExceptionWithIncorrectEntryKey(
321
338
. Instance ( )
322
339
. Calling ( c => c . AddMemoryCacheAction ( ) )
323
340
. ShouldHave ( )
324
- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
341
+ . MemoryCache ( cache => cache
342
+ . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
325
343
{
326
344
AbsoluteExpiration = new DateTimeOffset ( new DateTime ( 2016 , 1 , 1 , 1 , 1 , 1 , DateTimeKind . Utc ) ) ,
327
345
AbsoluteExpirationRelativeToNow = TimeSpan . FromMinutes ( 2 ) ,
@@ -342,7 +360,8 @@ public void ContainingEntriesShouldNotThrowExceptionWithCorrectValues()
342
360
. Instance ( )
343
361
. Calling ( c => c . AddMemoryCacheAction ( ) )
344
362
. ShouldHave ( )
345
- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
363
+ . MemoryCache ( cache => cache
364
+ . ContainingEntries ( new Dictionary < object , object >
346
365
{
347
366
[ "test" ] = "value" ,
348
367
[ "another" ] = "anotherValue"
@@ -362,7 +381,8 @@ public void ContainingEntriesShouldThrowExceptionWithIncorrectCount()
362
381
. Instance ( )
363
382
. Calling ( c => c . AddMemoryCacheAction ( ) )
364
383
. ShouldHave ( )
365
- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
384
+ . MemoryCache ( cache => cache
385
+ . ContainingEntries ( new Dictionary < object , object >
366
386
{
367
387
[ "test" ] = "value" ,
368
388
} ) )
@@ -383,7 +403,8 @@ public void ContainingEntriesShouldThrowExceptionWithIncorrectManyCount()
383
403
. Instance ( )
384
404
. Calling ( c => c . AddMemoryCacheAction ( ) )
385
405
. ShouldHave ( )
386
- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
406
+ . MemoryCache ( cache => cache
407
+ . ContainingEntries ( new Dictionary < object , object >
387
408
{
388
409
[ "test" ] = "value" ,
389
410
[ "another" ] = "anotherValue" ,
@@ -406,7 +427,8 @@ public void ContainingEntriesShouldThrowExceptionWithInvalidKey()
406
427
. Instance ( )
407
428
. Calling ( c => c . AddMemoryCacheAction ( ) )
408
429
. ShouldHave ( )
409
- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
430
+ . MemoryCache ( cache => cache
431
+ . ContainingEntries ( new Dictionary < object , object >
410
432
{
411
433
[ "test" ] = "value" ,
412
434
[ "invalid" ] = "anotherValue"
@@ -428,7 +450,8 @@ public void ContainingEntriesShouldThrowExceptionWithInvalidValue()
428
450
. Instance ( )
429
451
. Calling ( c => c . AddMemoryCacheAction ( ) )
430
452
. ShouldHave ( )
431
- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
453
+ . MemoryCache ( cache => cache
454
+ . ContainingEntries ( new Dictionary < object , object >
432
455
{
433
456
[ "test" ] = "value" ,
434
457
[ "another" ] = "invalid"
0 commit comments