public void TestReleasingTargetForCanExecuteGenericInternal() { _tempoInstance = new TemporaryClass(); _reference = new WeakReference(_tempoInstance); _tempoInstance.CreateCommandGenericCanExecuteInternal(); Assert.IsTrue(_reference.IsAlive); _tempoInstance = null; GC.Collect(); Assert.IsFalse(_reference.IsAlive); }