19 references to WeakCount
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\ReferenceManagerTests.cs (1)
1412
Assert.Equal(1, ((AssemblyMetadata)refA2.GetMetadataNoCopy()).CachedSymbols.
WeakCount
);
Microsoft.CodeAnalysis.UnitTests (17)
InternalUtilities\WeakListTests.cs (17)
76
Assert.Equal(5, list.
WeakCount
);
83
Assert.Equal(5, list.
WeakCount
);
96
Assert.Equal(1, list.
WeakCount
);
114
Assert.Equal(list.
WeakCount
, list.TestOnly_UnderlyingArray.Length); // full
122
Assert.Equal(1, list.
WeakCount
);
128
Assert.Equal(0, list.
WeakCount
);
144
Assert.Equal(list.
WeakCount
, list.TestOnly_UnderlyingArray.Length); // full
150
Assert.Equal(2, list.
WeakCount
);
156
Assert.Equal(0, list.
WeakCount
);
176
Assert.Equal(list.
WeakCount
, list.TestOnly_UnderlyingArray.Length); // full
182
Assert.Equal(4, list.
WeakCount
);
216
Assert.Equal(list.
WeakCount
, list.TestOnly_UnderlyingArray.Length); // full
222
Assert.Equal(6, list.
WeakCount
);
256
Assert.Equal(list.
WeakCount
, list.TestOnly_UnderlyingArray.Length); // full
262
Assert.Equal(8, list.
WeakCount
);
290
Assert.Equal(list.
WeakCount
, list.TestOnly_UnderlyingArray.Length); // full
294
Assert.Equal(10, list.
WeakCount
);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\ReferenceManagerTests.vb (1)
1080
Assert.Equal(1, (DirectCast(refA2.GetMetadataNoCopy(), AssemblyMetadata)).CachedSymbols.
WeakCount
)