33 references to TestOnly_UnderlyingArray
Microsoft.CodeAnalysis.UnitTests (33)
InternalUtilities\WeakListTests.cs (33)
59Assert.Equal(0, list.TestOnly_UnderlyingArray.Length); 62Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 65Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 68Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 71Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 74Assert.Equal(2 * 4 + 1, list.TestOnly_UnderlyingArray.Length); 100Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 116Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 123Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 132Assert.Equal(0, list.TestOnly_UnderlyingArray.Length); 149Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 154Assert.Equal(4, list.TestOnly_UnderlyingArray.Length); 163Assert.Equal(0, list.TestOnly_UnderlyingArray.Length); 184Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 189Assert.Equal(9, list.TestOnly_UnderlyingArray.Length); 192for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++) 196Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 200Assert.Null(list.TestOnly_UnderlyingArray[i]); 224Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 229Assert.Equal(9, list.TestOnly_UnderlyingArray.Length); 232for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++) 236Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 240Assert.Null(list.TestOnly_UnderlyingArray[i]); 264Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 269Assert.Equal(9 * 2 + 1, list.TestOnly_UnderlyingArray.Length); 272for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++) 276Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 280Assert.Null(list.TestOnly_UnderlyingArray[i]); 298Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full 301Assert.Equal(9 * 2 + 1, list.TestOnly_UnderlyingArray.Length); 304for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++) 308Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 312Assert.Null(list.TestOnly_UnderlyingArray[i]);