[TestMethod] public void Memory() { var wr = new WeakReference(\"aaabbb\"); Assert.IsTrue(wr.IsAlive); GC.Collect(); GC.Collect(); GC.Collect();
I can think of two possible reasons off the top of my head: