10 references to GetTarget
Microsoft.CodeAnalysis.UnitTests (10)
InternalUtilities\WeakListTests.cs (10)
84Assert.Null(list.GetWeakReference(0).GetTarget()); 85Assert.Same(b.GetReference(), list.GetWeakReference(1).GetTarget()); 86Assert.Null(list.GetWeakReference(2).GetTarget()); 87Assert.Null(list.GetWeakReference(3).GetTarget()); 88Assert.Null(list.GetWeakReference(4).GetTarget()); 97Assert.Same(b.GetReference(), list.GetWeakReference(0).GetTarget()); 188Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 228Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 268Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget()); 300Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].GetTarget());