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);
98Assert.Equal(4, list.TestOnly_UnderlyingArray.Length);
114Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full
121Assert.Equal(4, list.TestOnly_UnderlyingArray.Length);
127Assert.Equal(0, list.TestOnly_UnderlyingArray.Length);
144Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full
149Assert.Equal(4, list.TestOnly_UnderlyingArray.Length);
155Assert.Equal(0, list.TestOnly_UnderlyingArray.Length);
176Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full
181Assert.Equal(9, list.TestOnly_UnderlyingArray.Length);
184for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++)
188Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget());
192Assert.Null(list.TestOnly_UnderlyingArray[i]);
216Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full
221Assert.Equal(9, list.TestOnly_UnderlyingArray.Length);
224for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++)
228Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget());
232Assert.Null(list.TestOnly_UnderlyingArray[i]);
256Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full
261Assert.Equal(9 * 2 + 1, list.TestOnly_UnderlyingArray.Length);
264for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++)
268Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget());
272Assert.Null(list.TestOnly_UnderlyingArray[i]);
290Assert.Equal(list.WeakCount, list.TestOnly_UnderlyingArray.Length); // full
293Assert.Equal(9 * 2 + 1, list.TestOnly_UnderlyingArray.Length);
296for (int i = 0; i < list.TestOnly_UnderlyingArray.Length; i++)
300Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget());
304Assert.Null(list.TestOnly_UnderlyingArray[i]);