Skip to content

Commit

Permalink
Merge pull request #247 from nunit/issue-220
Browse files Browse the repository at this point in the history
Make sure we don't send an empty string to VS logger
  • Loading branch information
CharliePoole committed Oct 22, 2016
2 parents 017a813 + e7c68df commit 070ca95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NUnitTestAdapter/NUnitEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ public void TestOutput(XmlNode outputNode)
if (text.EndsWith(NL))
text = text.Substring(0, text.Length - NL_LENGTH);

// An empty message will cause SendMessage to throw
if (text.Length == 0) text = " ";

_recorder.SendMessage(TestMessageLevel.Warning, text);
}
}
Expand Down

0 comments on commit 070ca95

Please sign in to comment.