File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
test/EasyCaching.UnitTests/CachingTests Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,22 @@ public async Task Distributed_Set_Async_Throw_Exception_Should_Not_Break()
221
221
Assert . Equal ( default ( string ) , res . Value ) ;
222
222
}
223
223
224
+ [ Fact ]
225
+ public void Iss_311_Test ( )
226
+ {
227
+ var cacheKey = $ "{ _namespace } _iss311_{ Guid . NewGuid ( ) } ";
228
+
229
+ hybridCaching_1 . Set ( cacheKey , "val" , TimeSpan . FromSeconds ( 30 ) ) ;
230
+
231
+ var afterSet = hybridCaching_1 . Exists ( cacheKey ) ;
232
+ Assert . True ( afterSet ) ;
233
+
234
+ hybridCaching_1 . Remove ( cacheKey ) ;
235
+
236
+ var afterRemove = hybridCaching_1 . Exists ( cacheKey ) ;
237
+ Assert . False ( afterRemove ) ;
238
+ }
239
+
224
240
private void FakeCreatProvider ( )
225
241
{
226
242
A . CallTo ( ( ) => fakeFactory . GetCachingProvider ( "m1" ) ) . Returns ( new FakeLocalCachingProvider ( ) ) ;
You can’t perform that action at this time.
0 commit comments