10 references to GetTarget
Microsoft.CodeAnalysis.UnitTests (10)
InternalUtilities\WeakListTests.cs (10)
84
Assert.Null(list.GetWeakReference(0).
GetTarget
());
85
Assert.Same(b.GetReference(), list.GetWeakReference(1).
GetTarget
());
86
Assert.Null(list.GetWeakReference(2).
GetTarget
());
87
Assert.Null(list.GetWeakReference(3).
GetTarget
());
88
Assert.Null(list.GetWeakReference(4).
GetTarget
());
99
Assert.Same(b.GetReference(), list.GetWeakReference(0).
GetTarget
());
196
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());
236
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());
276
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());
308
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());