Resharper and support for IDisposable test fixtures

Hi,

It seems that Resharper 3.1 is behind NUnit 2.4 in support of an automatic call to Dispose() for test fixtures implementing IDisposable, which I believe is the preferred way of doing clean-up as opposed to using . In order for our tests to clean after themselves we now have to decorate Dispose() with this attribute if we want Resharper to do the right thing. Could you please add this feature?
Thanks,

Sergey.

2 comments
Comment actions Permalink

Hello Sergey,

This has been fixed in ReSharper 4 and I just backported it to ReSharper
3. Check out latest nightly build.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> Hi,
IR>
IR> It seems that Resharper 3.1 is behind NUnit 2.4 in support of an
IR> automatic call to Dispose() for test fixtures implementing
IR> IDisposable, which I believe is the preferred way of doing clean-up
IR> as opposed to using . In order for our tests to
IR> clean after themselves we now have to decorate Dispose() with this
IR> attribute if we want Resharper to do the right thing. Could you
IR> please add this feature?
IR>
IR> Thanks,
IR>
IR> Sergey.
IR>


0
Comment actions Permalink

Thanks, that's good news :-). Should we expect a new release of Resharper 3 or 4 with this fix in the nearest future?

0

Please sign in to leave a comment.