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