public void Get_WhenKeyIsNull_ThrowArgumentNullException() { var provider = new Mock <ICouchbaseCacheBucketProvider>(); var cache = new CouchbaseCache(provider.Object, new CouchbaseCacheOptions()); Assert.Throws <ArgumentNullException>(() => cache.Get(null)); }
public void Get_Generic_WhenKeyIsNull_ThrowArgumentNullException() { var provider = new Mock <ICouchbaseCacheBucketProvider>(); var cache = new CouchbaseCache(provider.Object, new CouchbaseCacheOptions()); Assert.Throws <ArgumentNullException>(() => cache.Get <Poco>(null, new DistributedCacheEntryOptions())); }