@@ -44,7 +44,8 @@ public void ContainingEntryWithKeyShouldThrowExceptionWithIncorrectEntry()
4444 . Instance ( )
4545 . Calling ( c => c . AddMemoryCacheAction ( ) )
4646 . ShouldHave ( )
47- . MemoryCache ( cache => cache . ContainingEntryWithKey ( "invalid" ) )
47+ . MemoryCache ( cache => cache
48+ . ContainingEntryWithKey ( "invalid" ) )
4849 . AndAlso ( )
4950 . ShouldReturn ( )
5051 . Ok ( ) ;
@@ -59,7 +60,8 @@ public void ContainingEntryWithValueShouldNotThrowExceptionWithCorrectEntry()
5960 . Instance ( )
6061 . Calling ( c => c . AddMemoryCacheAction ( ) )
6162 . ShouldHave ( )
62- . MemoryCache ( cache => cache . ContainingEntryWithValue ( "value" ) )
63+ . MemoryCache ( cache => cache
64+ . ContainingEntryWithValue ( "value" ) )
6365 . AndAlso ( )
6466 . ShouldReturn ( )
6567 . Ok ( ) ;
@@ -75,7 +77,8 @@ public void ContainingEntryWithValueShouldThrowExceptionWithIncorrectEntry()
7577 . Instance ( )
7678 . Calling ( c => c . AddMemoryCacheAction ( ) )
7779 . ShouldHave ( )
78- . MemoryCache ( cache => cache . ContainingEntryWithValue ( "invalid" ) )
80+ . MemoryCache ( cache => cache
81+ . ContainingEntryWithValue ( "invalid" ) )
7982 . AndAlso ( )
8083 . ShouldReturn ( )
8184 . Ok ( ) ;
@@ -90,7 +93,8 @@ public void ContainingEntryOfTypeShouldNotThrowExceptionWithCorrectEntryForGener
9093 . Instance ( )
9194 . Calling ( c => c . AddMemoryCacheAction ( ) )
9295 . ShouldHave ( )
93- . MemoryCache ( cache => cache . ContainingEntryOfType < string > ( ) )
96+ . MemoryCache ( cache => cache
97+ . ContainingEntryOfType < string > ( ) )
9498 . AndAlso ( )
9599 . ShouldReturn ( )
96100 . Ok ( ) ;
@@ -103,7 +107,8 @@ public void ContainingEntryOfTypeShouldNotThrowExceptionWithCorrectEntry()
103107 . Instance ( )
104108 . Calling ( c => c . AddMemoryCacheAction ( ) )
105109 . ShouldHave ( )
106- . MemoryCache ( cache => cache . ContainingEntryOfType ( typeof ( string ) ) )
110+ . MemoryCache ( cache => cache
111+ . ContainingEntryOfType ( typeof ( string ) ) )
107112 . AndAlso ( )
108113 . ShouldReturn ( )
109114 . Ok ( ) ;
@@ -119,7 +124,8 @@ public void ContainingEntryOfTypeShouldThrowExceptionWithIncorrectEntryForGeneri
119124 . Instance ( )
120125 . Calling ( c => c . AddMemoryCacheAction ( ) )
121126 . ShouldHave ( )
122- . MemoryCache ( cache => cache . ContainingEntryOfType < int > ( ) )
127+ . MemoryCache ( cache => cache
128+ . ContainingEntryOfType < int > ( ) )
123129 . AndAlso ( )
124130 . ShouldReturn ( )
125131 . Ok ( ) ;
@@ -137,7 +143,8 @@ public void ContainingEntryOfTypeShouldThrowExceptionWithIncorrectEntry()
137143 . Instance ( )
138144 . Calling ( c => c . AddMemoryCacheAction ( ) )
139145 . ShouldHave ( )
140- . MemoryCache ( cache => cache . ContainingEntryOfType ( typeof ( int ) ) )
146+ . MemoryCache ( cache => cache
147+ . ContainingEntryOfType ( typeof ( int ) ) )
141148 . AndAlso ( )
142149 . ShouldReturn ( )
143150 . Ok ( ) ;
@@ -152,7 +159,8 @@ public void ContainingEntryOfTypeAndKeyShouldNotThrowExceptionWithCorrectEntryFo
152159 . Instance ( )
153160 . Calling ( c => c . AddMemoryCacheAction ( ) )
154161 . ShouldHave ( )
155- . MemoryCache ( cache => cache . ContainingEntryOfType < string > ( "test" ) )
162+ . MemoryCache ( cache => cache
163+ . ContainingEntryOfType < string > ( "test" ) )
156164 . AndAlso ( )
157165 . ShouldReturn ( )
158166 . Ok ( ) ;
@@ -165,7 +173,8 @@ public void ContainingEntryOfTypeAndKeyShouldNotThrowExceptionWithCorrectEntry()
165173 . Instance ( )
166174 . Calling ( c => c . AddMemoryCacheAction ( ) )
167175 . ShouldHave ( )
168- . MemoryCache ( cache => cache . ContainingEntryOfType ( "test" , typeof ( string ) ) )
176+ . MemoryCache ( cache => cache
177+ . ContainingEntryOfType ( "test" , typeof ( string ) ) )
169178 . AndAlso ( )
170179 . ShouldReturn ( )
171180 . Ok ( ) ;
@@ -181,7 +190,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntryKey
181190 . Instance ( )
182191 . Calling ( c => c . AddMemoryCacheAction ( ) )
183192 . ShouldHave ( )
184- . MemoryCache ( cache => cache . ContainingEntryOfType < string > ( "invalid" ) )
193+ . MemoryCache ( cache => cache
194+ . ContainingEntryOfType < string > ( "invalid" ) )
185195 . AndAlso ( )
186196 . ShouldReturn ( )
187197 . Ok ( ) ;
@@ -199,7 +209,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntryKey
199209 . Instance ( )
200210 . Calling ( c => c . AddMemoryCacheAction ( ) )
201211 . ShouldHave ( )
202- . MemoryCache ( cache => cache . ContainingEntryOfType ( "invalid" , typeof ( string ) ) )
212+ . MemoryCache ( cache => cache
213+ . ContainingEntryOfType ( "invalid" , typeof ( string ) ) )
203214 . AndAlso ( )
204215 . ShouldReturn ( )
205216 . Ok ( ) ;
@@ -217,7 +228,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntryFor
217228 . Instance ( )
218229 . Calling ( c => c . AddMemoryCacheAction ( ) )
219230 . ShouldHave ( )
220- . MemoryCache ( cache => cache . ContainingEntryOfType < int > ( "test" ) )
231+ . MemoryCache ( cache => cache
232+ . ContainingEntryOfType < int > ( "test" ) )
221233 . AndAlso ( )
222234 . ShouldReturn ( )
223235 . Ok ( ) ;
@@ -235,7 +247,8 @@ public void ContainingEntryOfTypeAndKeyShouldThrowExceptionWithIncorrectEntry()
235247 . Instance ( )
236248 . Calling ( c => c . AddMemoryCacheAction ( ) )
237249 . ShouldHave ( )
238- . MemoryCache ( cache => cache . ContainingEntryOfType ( "test" , typeof ( int ) ) )
250+ . MemoryCache ( cache => cache
251+ . ContainingEntryOfType ( "test" , typeof ( int ) ) )
239252 . AndAlso ( )
240253 . ShouldReturn ( )
241254 . Ok ( ) ;
@@ -250,7 +263,8 @@ public void ContainingEntryShouldNotThrowExceptionWithCorrectEntry()
250263 . Instance ( )
251264 . Calling ( c => c . AddMemoryCacheAction ( ) )
252265 . ShouldHave ( )
253- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "value" ) )
266+ . MemoryCache ( cache => cache
267+ . ContainingEntry ( "test" , "value" ) )
254268 . AndAlso ( )
255269 . ShouldReturn ( )
256270 . Ok ( ) ;
@@ -266,7 +280,8 @@ public void ContainingEntryShouldThrowExceptionWithIncorrectEntryKey()
266280 . Instance ( )
267281 . Calling ( c => c . AddMemoryCacheAction ( ) )
268282 . ShouldHave ( )
269- . MemoryCache ( cache => cache . ContainingEntry ( "invalid" , "value" ) )
283+ . MemoryCache ( cache => cache
284+ . ContainingEntry ( "invalid" , "value" ) )
270285 . AndAlso ( )
271286 . ShouldReturn ( )
272287 . Ok ( ) ;
@@ -284,7 +299,8 @@ public void ContainingEntryShouldThrowExceptionWithIncorrectEntry()
284299 . Instance ( )
285300 . Calling ( c => c . AddMemoryCacheAction ( ) )
286301 . ShouldHave ( )
287- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "invalid" ) )
302+ . MemoryCache ( cache => cache
303+ . ContainingEntry ( "test" , "invalid" ) )
288304 . AndAlso ( )
289305 . ShouldReturn ( )
290306 . Ok ( ) ;
@@ -299,7 +315,8 @@ public void ContainingEntryWithOptionsShouldNotThrowExceptionWithCorrectEntry()
299315 . Instance ( )
300316 . Calling ( c => c . AddMemoryCacheAction ( ) )
301317 . ShouldHave ( )
302- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
318+ . MemoryCache ( cache => cache
319+ . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
303320 {
304321 AbsoluteExpiration = new DateTimeOffset ( new DateTime ( 2016 , 1 , 1 , 1 , 1 , 1 , DateTimeKind . Utc ) ) ,
305322 AbsoluteExpirationRelativeToNow = TimeSpan . FromMinutes ( 1 ) ,
@@ -321,7 +338,8 @@ public void ContainingEntryWithOptionsShouldThrowExceptionWithIncorrectEntryKey(
321338 . Instance ( )
322339 . Calling ( c => c . AddMemoryCacheAction ( ) )
323340 . ShouldHave ( )
324- . MemoryCache ( cache => cache . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
341+ . MemoryCache ( cache => cache
342+ . ContainingEntry ( "test" , "value" , new MemoryCacheEntryOptions
325343 {
326344 AbsoluteExpiration = new DateTimeOffset ( new DateTime ( 2016 , 1 , 1 , 1 , 1 , 1 , DateTimeKind . Utc ) ) ,
327345 AbsoluteExpirationRelativeToNow = TimeSpan . FromMinutes ( 2 ) ,
@@ -342,7 +360,8 @@ public void ContainingEntriesShouldNotThrowExceptionWithCorrectValues()
342360 . Instance ( )
343361 . Calling ( c => c . AddMemoryCacheAction ( ) )
344362 . ShouldHave ( )
345- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
363+ . MemoryCache ( cache => cache
364+ . ContainingEntries ( new Dictionary < object , object >
346365 {
347366 [ "test" ] = "value" ,
348367 [ "another" ] = "anotherValue"
@@ -362,7 +381,8 @@ public void ContainingEntriesShouldThrowExceptionWithIncorrectCount()
362381 . Instance ( )
363382 . Calling ( c => c . AddMemoryCacheAction ( ) )
364383 . ShouldHave ( )
365- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
384+ . MemoryCache ( cache => cache
385+ . ContainingEntries ( new Dictionary < object , object >
366386 {
367387 [ "test" ] = "value" ,
368388 } ) )
@@ -383,7 +403,8 @@ public void ContainingEntriesShouldThrowExceptionWithIncorrectManyCount()
383403 . Instance ( )
384404 . Calling ( c => c . AddMemoryCacheAction ( ) )
385405 . ShouldHave ( )
386- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
406+ . MemoryCache ( cache => cache
407+ . ContainingEntries ( new Dictionary < object , object >
387408 {
388409 [ "test" ] = "value" ,
389410 [ "another" ] = "anotherValue" ,
@@ -406,7 +427,8 @@ public void ContainingEntriesShouldThrowExceptionWithInvalidKey()
406427 . Instance ( )
407428 . Calling ( c => c . AddMemoryCacheAction ( ) )
408429 . ShouldHave ( )
409- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
430+ . MemoryCache ( cache => cache
431+ . ContainingEntries ( new Dictionary < object , object >
410432 {
411433 [ "test" ] = "value" ,
412434 [ "invalid" ] = "anotherValue"
@@ -428,7 +450,8 @@ public void ContainingEntriesShouldThrowExceptionWithInvalidValue()
428450 . Instance ( )
429451 . Calling ( c => c . AddMemoryCacheAction ( ) )
430452 . ShouldHave ( )
431- . MemoryCache ( cache => cache . ContainingEntries ( new Dictionary < object , object >
453+ . MemoryCache ( cache => cache
454+ . ContainingEntries ( new Dictionary < object , object >
432455 {
433456 [ "test" ] = "value" ,
434457 [ "another" ] = "invalid"
0 commit comments