public void PoisonDisposesTheCache() { var mock = new MockDataRetriever(); var cache = new ResultCache <string>(Key, mock.GetData, GetCache()); cache.Get(); Assert.Equal(1, mock.DataRetrievalCount); cache.Poison(); cache.Get(); Assert.Equal(2, mock.DataRetrievalCount); }