Skip to content

Commit

Permalink
issue connamara#48 - fix broke unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gbirchmeier committed May 10, 2013
1 parent b1b69d7 commit 26f42b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QuickFIXn/FileLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public void OnEvent(string s)

public void Dispose()
{
messageLog_.Close();
eventLog_.Close();
if (messageLog_ != null) { messageLog_.Close(); }
if (eventLog_ != null) { eventLog_.Close(); }

messageLog_ = null;
eventLog_ = null;
Expand Down
3 changes: 3 additions & 0 deletions UnitTests/FileLogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ public void setup()
public void teardown()
{
if (log != null)
{
log.Dispose();
log = null;
}
}

[Test]
Expand Down

0 comments on commit 26f42b6

Please sign in to comment.