We are unable to populate tests defined with the static test factory within Visual Studio Test Tools because the test assembly is loaded in a reflection-only context.
I should probably improve the error message or silencing it. Please open an issue for this. The same limitation will apply to the ReSharper test runner. Jeff. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Kharitonov Sent: Wednesday, August 19, 2009 7:22 AM To: MbUnit.User Subject: MbUnit System.NotSupportedException: Cannot invoke unresolved method. Hi. When I switch to the TestView window I get this: [error] An exception was thrown while exploring tests. Location: c:\Dev\windows\NC\NC.Entities.Test\TestFlowFolder.cs Reference: NetworkCatcher.Entities.Test.TestFlowFolder.CreateStaticTests, NC.Entities.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=807fc02bc4ce69db Details: System.NotSupportedException: Cannot invoke unresolved method. at Gallio.Common.Reflection.Impl.DotNet20.UnresolvedMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in c:\RelEng\Projects\MbUnit v3.1\Work \src\Gallio\Gallio\Common\Reflection\Impl\UnresolvedMethodBase.cs:line 176 at MbUnit.Framework.StaticTestFactoryAttribute.DecorateContainingScope (IPatternScope containingScope, IMethodInfo method) in c:\RelEng \Projects\MbUnit v3.1\Work\src\MbUnit\MbUnit\Framework \StaticTestFactoryAttribute.cs:line 109 at Gallio.Framework.Pattern.ContributionMethodPatternAttribute.<>c__DisplayClas s1.<Consume>b__0 () in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Framework \Pattern\ContributionMethodPatternAttribute.cs:line 48 at Gallio.Framework.Pattern.BaseBuilder.RunDeferredAction (ICodeElementInfo codeElement, Action deferredAction) in c:\RelEng \Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Framework\Pattern \BaseBuilder.cs:line 66 What does it mean? Thanks. P.S. The file is valid. Tests can be run both from TD.NET and directly by Gallio. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en -~----------~----~----~----~------~----~------~--~---
