Browse Source

Fixed SD2-476. Goto definition now works for unit tests in a test fixture containing a SetUp method.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@548 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 21 years ago
parent
commit
b63c53a432
  1. 12
      src/AddIns/Misc/MbUnitPad/Project/Src/TestTreeView.cs

12
src/AddIns/Misc/MbUnitPad/Project/Src/TestTreeView.cs

@ -109,7 +109,7 @@ namespace ICSharpCode.MbUnitPad @@ -109,7 +109,7 @@ namespace ICSharpCode.MbUnitPad
string fixtureName = null;
switch (node.TestNodeType) {
case TestNodeType.Test:
methodName = node.Text;
methodName = GetTestMethodName(node.Text);
fixtureName = node.Parent.Text;
break;
@ -142,6 +142,16 @@ namespace ICSharpCode.MbUnitPad @@ -142,6 +142,16 @@ namespace ICSharpCode.MbUnitPad
}
static MessageViewCategory testRunnerCategory;
string GetTestMethodName(string methodName)
{
int index = methodName.IndexOf(".");
if (index >= 0) {
return methodName.Substring(index + 1);
}
return methodName;
}
void OnTestsStarted(object sender, EventArgs e)
{

Loading…
Cancel
Save