19 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); 96Assert.Equal(1, list.WeakCount); 114Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 122Assert.Equal(1, list.WeakCount); 128Assert.Equal(0, list.WeakCount); 144Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 150Assert.Equal(2, list.WeakCount); 156Assert.Equal(0, list.WeakCount); 176Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 182Assert.Equal(4, list.WeakCount); 216Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 222Assert.Equal(6, list.WeakCount); 256Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 262Assert.Equal(8, list.WeakCount); 290Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 294Assert.Equal(10, list.WeakCount);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\ReferenceManagerTests.vb (1)
1080Assert.Equal(1, (DirectCast(refA2.GetMetadataNoCopy(), AssemblyMetadata)).CachedSymbols.WeakCount)