8 references to GetWeakReference
Microsoft.CodeAnalysis.UnitTests (8)
InternalUtilities\WeakListTests.cs (8)
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());
315
Assert.Throws<ArgumentOutOfRangeException>(() => list.
GetWeakReference
(-1));
316
Assert.Throws<ArgumentOutOfRangeException>(() => list.
GetWeakReference
(0));