Unit Test Adapter threw exception: Method has wrong signature
-
Monday, June 04, 2012 4:23 PM
Hi, I'm working with the RC of VS 2012 that was out 31-May.
All unit tests are failing with the following error message:
Unit Test Adapter threw exception:
Method not found: 'Microsoft.VisualStudio.TestTools.Resources.EqtMessage Microsoft.VisualStudio.TestTools.Resources.Messages.UTA_MethodHasWrongSignatureResolution_ReturnType(System.Object)'..
I dug into the output and found some stacktrace:
Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter.dll!Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.GetAssemblyInfo(System.Reflection.Assembly assembly = {unknown})
Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter.dll!Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.GetTypeInfo(System.Type type = {unknown}, bool checkAlreadyExaminedType = {unknown})
Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter.dll!Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.GetTypeInfo(System.Type type = {unknown})
Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter.dll!Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.ResolveMethods()The tests were running fine on the beta.
Can anyone help with this?
Thanks
All Replies
-
Monday, June 04, 2012 5:05 PM
Hi Noel,
Thanks for reporting the issue. Can you please share the signature of the test method you are using?
Regards,
Vikram Agrawal,
Developer, VSTLM, Microsoft Corporation- Edited by Vikram Agrawal Monday, June 04, 2012 5:08 PM
-
Monday, June 04, 2012 6:06 PM
Hi, Vikram,
I managed to find the solution to the problem.
Basically I deleted all the test settings files:
Local.testsettings
TraceAndTestImpact.testsettings
Global.vsmdirestarted VS, and I was able to run the tests again.
Regards,
Noel
- Marked As Answer by Noel Abrahams Monday, June 04, 2012 6:06 PM
-
Wednesday, August 08, 2012 5:07 PM
Hi, I've also encountered the issue. Noel's solution couldn't help. I've created a Connect feedback item: https://connect.microsoft.com/VisualStudio/feedback/details/757518/missingmethodexception-while-running-tests-in-vs2012-rc. It also has a workaround I've found. Hope it helps someone else.
- Proposed As Answer by Pavel Gatilov _ Wednesday, August 08, 2012 5:11 PM

