Created
August 7, 2010 14:00
-
-
Save jacksonh/512841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs b/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs | |
index 8980ec3..a481ebf 100644 | |
--- a/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs | |
+++ b/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs | |
@@ -153,7 +153,7 @@ namespace MonoDevelop.NUnit.External | |
public bool Pass (ITest test) | |
{ | |
- if ((test is global::NUnit.Core.TestCase) && test.TestName.FullName == name) | |
+ if (IsTestFixture (test) && test.TestName.FullName == name) | |
return true; | |
if (test.Tests != null) { | |
foreach (ITest ct in test.Tests) { | |
@@ -164,6 +164,14 @@ namespace MonoDevelop.NUnit.External | |
return false; | |
} | |
+ private bool IsTestFixture (ITest test) | |
+ { | |
+ Type t = test.GetType (); | |
+ object [] ats = t.GetCustomAttributes (typeof (TestFixtureAttribute), true); | |
+ | |
+ return ats.Length > 0; | |
+ } | |
+ | |
public bool Match (ITest test) | |
{ | |
return Pass (test); | |
diff --git a/main/src/addins/NUnit/lib/nunit.core.dll b/main/src/addins/NUnit/lib/nunit.core.dll | |
index a31edfd..dd3b2e0 100644 | |
Binary files a/main/src/addins/NUnit/lib/nunit.core.dll and b/main/src/addins/NUnit/lib/nunit.core.dll differ | |
diff --git a/main/src/addins/NUnit/lib/nunit.core.interfaces.dll b/main/src/addins/NUnit/lib/nunit.core.interfaces.dll | |
index 2c48764..39a1127 100644 | |
Binary files a/main/src/addins/NUnit/lib/nunit.core.interfaces.dll and b/main/src/addins/NUnit/lib/nunit.core.interfaces.dll differ | |
diff --git a/main/src/addins/NUnit/lib/nunit.framework.dll b/main/src/addins/NUnit/lib/nunit.framework.dll | |
index 2a0a0aa..639dbb0 100644 | |
Binary files a/main/src/addins/NUnit/lib/nunit.framework.dll and b/main/src/addins/NUnit/lib/nunit.framework.dll differ | |
diff --git a/main/src/addins/NUnit/lib/nunit.util.dll b/main/src/addins/NUnit/lib/nunit.util.dll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment