public void IsStatic_ReturnsFalse <TOut>(TOut outputParameter) { var weakFunc = WeakDelegatesCallCounter .GetWeakAnonymousFuncWithoutReferences <TOut>(); Assert.False(weakFunc.IsStatic); }
public void IsAlive_AfterGarbageCollection_ReturnsTrue <TOut>(TOut outputParameter) { var weakFunc = WeakDelegatesCallCounter .GetWeakAnonymousFuncWithoutReferences <TOut>(); GC.Collect(); Assert.True(weakFunc.IsAlive); }