diff options
author | Mike Krüger <mkrueger@novell.com> | 2011-04-26 17:16:42 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2011-04-26 17:16:42 +0400 |
commit | 7c02743befb9d0a40f8d88106318a23ba7028add (patch) | |
tree | c4e3e35427aa855cbe7dd430084efd9766236b50 /main/src/addins/NUnit | |
parent | 956f48058248a9a9acbdb3310bcf9653189a7e3a (diff) |
Fixed 'Bug 606168 - Jump to failed unit test when exceptions are
thrown'.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Gui/TestResultsPad.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/NUnit/Gui/TestResultsPad.cs b/main/src/addins/NUnit/Gui/TestResultsPad.cs index 8ab84fb306..d2b938d244 100644 --- a/main/src/addins/NUnit/Gui/TestResultsPad.cs +++ b/main/src/addins/NUnit/Gui/TestResultsPad.cs @@ -549,7 +549,8 @@ namespace MonoDevelop.NUnit if (result.IsFailure) { if (!buttonFailures.Active) return; - TreeIter testRow = failuresStore.AppendValues (CircleImage.Failure, Escape (test.FullName), test); + string file = test.SourceCodeLocation != null ? test.SourceCodeLocation.FileName + ":" + test.SourceCodeLocation.Line : null; + TreeIter testRow = failuresStore.AppendValues (CircleImage.Failure, Escape (test.FullName), test, file); bool hasMessage = result.Message != null && result.Message.Length > 0; if (hasMessage) failuresStore.AppendValues (testRow, null, Escape (result.Message), test); |