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
());
97
Assert.Same(b.GetReference(), list.GetWeakReference(0).
GetTarget
());
188
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());
228
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());
268
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());
300
Assert.Same(b.GetReference(), list.TestOnly_UnderlyingArray[i].
GetTarget
());