18 references to WeakCount
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\ReferenceManagerTests.cs (1)
1412Assert.Equal(1, ((AssemblyMetadata)refA2.GetMetadataNoCopy()).CachedSymbols.WeakCount);
Microsoft.CodeAnalysis.UnitTests (17)
InternalUtilities\WeakListTests.cs (17)
76Assert.Equal(5, list.WeakCount); 83Assert.Equal(5, list.WeakCount); 98Assert.Equal(1, list.WeakCount); 116Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 124Assert.Equal(1, list.WeakCount); 133Assert.Equal(0, list.WeakCount); 149Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 155Assert.Equal(2, list.WeakCount); 164Assert.Equal(0, list.WeakCount); 184Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 190Assert.Equal(4, list.WeakCount); 224Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 230Assert.Equal(6, list.WeakCount); 264Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 270Assert.Equal(8, list.WeakCount); 298Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 302Assert.Equal(10, list.WeakCount);