13 references to _cache
Microsoft.NET.StringTools.net35.UnitTests (13)
WeakStringCache_Tests.cs (13)
33
_cache
.Dispose();
52
string cachedString =
_cache
.GetOrCreateEntry(ref testStringTarget, out bool cacheHit);
61
cachedString =
_cache
.GetOrCreateEntry(ref testStringCopyTarget, out cacheHit);
71
cachedString =
_cache
.GetOrCreateEntry(ref testStringCopyTarget, out cacheHit);
92
_cache
.GetDebugInfo().ShouldBe(new WeakStringCache.DebugInfo()
111
string 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()