deleyd
asked on
Does this test method introduce an undisposed of disposable thing?
Does this test method introduce an object that goes undisposed?
Is this a problem? Should disposable things never be created as parameters, because we don't hold on to them?
[/[TestMethod]
public void TestMethod1()
{
DoSomething(new DisposableThing(...))
...
}
where DisposableThing is some class that implements IDisposable.Is this a problem? Should disposable things never be created as parameters, because we don't hold on to them?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
-saige-