Fixed exceptions due to null or empty messages, issue #34

This commit is contained in:
Terje Sandstrom 2014-06-15 23:18:05 +02:00
Родитель cd426d3f65
Коммит c6908ab133
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -94,7 +94,8 @@ namespace NUnit.VisualStudio.TestAdapter
: 0;
if (drop > 0)
message = message.Substring(0, length - drop);
this.testLog.SendMessage(TestMessageLevel.Informational, message);
if (!string.IsNullOrEmpty(message))
testLog.SendMessage(TestMessageLevel.Informational, message);
string type="";
// Consider adding this later, as an option.
//switch (testOutput.Type)