[1544] NUnit methods cannot be found

When I have something of that sort:

    [TestFixture]     public class HeapSortFixture     {         [Test]         public void CanSort()         {             ...         }     }



I see the test icons for the fixture and the method so they seem to be recognized but when I click on it a break point is added instead of the menu to choose to run or debug that test. Even more when I use the Unit Test Explorer I can't see my tests.
0
2 comments

And when I refresh the tests I am getting this ReSharper exception:

Current file extension: cs The given key was not present in the dictionary. --- EXCEPTION #1/2 [KeyNotFoundException] Message = “The given key was not present in the dictionary.” ExceptionPath = Root.InnerException ClassName = System.Collections.Generic.KeyNotFoundException HResult = COR_E_KEYNOTFOUND=80131577 Source = JetBrains.Platform.ReSharper.Util StackTraceString = “   at JetBrains.Util.DataStructures.CompactMapBase`4.get_Item(TKey key) in c:\Agent\work\cc29ccea5bf569df\Platform\src\Util\src\dataStructures\CompactMapBase.cs:line 106      at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.RemoveUnitTestElementsFrom(IProject project) in c:\Agent\work\cc29ccea5bf569df\src\UnitTestFramework\src\UnitTestManager.cs:line 430      at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.ExploreProject(IProject project, Boolean background) in c:\Agent\work\cc29ccea5bf569df\src\UnitTestFramework\src\UnitTestManager.cs:line 647 ” --- Outer --- --- EXCEPTION #2/2 [LoggerException] Message = “The given key was not present in the dictionary.” ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = “Exception #1 at Root.InnerException” HResult = COR_E_APPLICATION=80131600 StackTraceString = “   at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.ExploreProject(IProject project, Boolean background) in c:\Agent\work\cc29ccea5bf569df\src\UnitTestFramework\src\UnitTestManager.cs:line 663      at JetBrains.ReSharper.UnitTestExplorer.UnitTestManagerImpl.ExploreProject(IProject project, Boolean background) in c:\Agent\work\cc29ccea5bf569df\src\UnitTestExplorer\src\Manager\UnitTestManagerImpl.cs:line 60      at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.BackgroundProjectExplorer() in c:\Agent\work\cc29ccea5bf569df\src\UnitTestFramework\src\UnitTestManager.cs:line 381      at JetBrains.Util.Logger.Catch(Action action) in c:\Agent\work\cc29ccea5bf569df\Platform\src\Util\src\Logger\Logger.cs:line 240      at JetBrains.ReSharper.UnitTestExplorer.UnitTestManagerImpl.<AfterSolutionOpened>b__21() in c:\Agent\work\cc29ccea5bf569df\src\UnitTestExplorer\src\Manager\UnitTestManagerImpl.cs:line 536      at System.Threading.ThreadHelper.ThreadStart_Context(Object state)      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)      at System.Threading.ThreadHelper.ThreadStart() ”


0

VS2008 SP1 - I get this error when opening a project that does not contain any unit tests.

0

Please sign in to leave a comment.