BADF00D / DisposableFixer

This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Other
35 stars 7 forks source link

Extends support for FakeItEasy #57

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

Prerequisites

Description

In issue #50 a basic support for FakeItEasy was added. Unfortunately this is not complete. The following code yields an diagnistic:

Source Code

A.Fake<MockStream>(o => o.Strict());

Screenshot

image

BADF00D commented 7 years ago

Added support for following calls:

A.Fake<IDisposable>(o => o.Strict());
A.Fake<IDisposable>();
A.CollectionOfFake<IDisposable>(2);
A.CollectionOfFake<IDisposable>(2, o => o.Strict());
A.Dummy<IDisposable>();
A.CollectionOfDummy<IDisposable>(3);
A<IDisposable>.Ignored;
A<IDisposable>._;
A<IDisposable>.That.Matches(f => true);