public void Cache_stats_should_only_be_calculated_on_CachingStatments() { IModelStore modelStore = ((IModelStoreAccessor)dataMapper).ModelStore; modelStore.FlushCaches(); // taken from TestFlushDataCache() // first query is not cached, second query is: 50% cache hit IList list = dataMapper.QueryForList("Account.GetCachedAccountsViaResultMap", null); int firstId = HashCodeProvider.GetIdentityHashCode(list); list = dataMapper.QueryForList("Account.GetCachedAccountsViaResultMap", null); int secondId = HashCodeProvider.GetIdentityHashCode(list); Assert.AreEqual(firstId, secondId); //string cacheStats = modelStore.GetDataCacheStats(); //Assert.IsNotNull(cacheStats); }