Skip to content

Commit

Permalink
Fixed some tests to dispose resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Dec 10, 2023
1 parent 709a63a commit 15e111e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion UnitTests/Net/Imap/ImapCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

namespace UnitTests.Net.Imap {
[TestFixture]
public class ImapCommandTests
public class ImapCommandTests : IDisposable
{
readonly ImapEngine Engine;
readonly ImapFolder Inbox;
Expand All @@ -47,6 +47,11 @@ public ImapCommandTests ()
Inbox = new ImapFolder (args);
}

public void Dispose ()
{
Engine.Dispose ();
}

static ImapFolder CreateImapFolderDelegate (ImapFolderConstructorArgs args)
{
return new ImapFolder (args);
Expand Down
7 changes: 6 additions & 1 deletion UnitTests/Net/Imap/ImapUtilsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@

namespace UnitTests.Net.Imap {
[TestFixture]
public class ImapUtilsTests
public class ImapUtilsTests : IDisposable
{
readonly ImapEngine engine = new ImapEngine (null);

public void Dispose ()
{
engine.Dispose ();
}

[Test]
public void TestResponseCodeCreation ()
{
Expand Down

0 comments on commit 15e111e

Please sign in to comment.