13 references to _cache
Microsoft.NET.StringTools.net35.UnitTests (13)
WeakStringCache_Tests.cs (13)
33_cache.Dispose(); 52string cachedString = _cache.GetOrCreateEntry(ref testStringTarget, out bool cacheHit); 61cachedString = _cache.GetOrCreateEntry(ref testStringCopyTarget, out cacheHit); 71cachedString = _cache.GetOrCreateEntry(ref testStringCopyTarget, out cacheHit); 92_cache.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo() 111string cachedStringFromCache = _cache.GetOrCreateEntry(ref stringCopy, out bool cacheHit); 129_cache.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo() 140_cache.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo() 147_cache.Scavenge(); 150_cache.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo() 170_cache.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo() 177_cache.Scavenge(); 180_cache.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo()