[x] I have verified that I am running the latest version of DisposableFixer
[x] I have searched open and closed issues to ensure it has not already been reported
Description
If you create an instance of an Interface that implements IDisposable, it is marked as not disposed.
But if it is created via A.Fake<IDisposable> there is nothing to disposed, Because there are no resources that have to be disposed and the actual call to Dispose does nothing. So this Disposable can be ignored.
Source Code
public class SomeClass{
private readonly IDisposable _fake = A.Fake<IDisposable>();
}
Prerequisites
Description
If you create an instance of an Interface that implements IDisposable, it is marked as not disposed. But if it is created via
A.Fake<IDisposable>
there is nothing to disposed, Because there are no resources that have to be disposed and the actual call to Dispose does nothing. So this Disposable can be ignored.Source Code
Screenshot