मैं उपयोग कर रहा हूँ Unit Test Explorerऔर Unit Test Sessionsमेरी परीक्षण चलाने के लिए और अचानक नीचे त्रुटि प्राप्त करने के लिए।
जब में चल रहा है Test -> Test explorer, तो परीक्षण बिल्कुल नहीं चलते हैं और मुझे कोई त्रुटि नहीं दिखती है।
दोनों मामलों में Outputखिड़की में कुछ भी नहीं है । मैंने आर # को फिर से इंस्टॉल किया है, वीएस कैश (इन %USERPROFILE%\AppData\Local\Microsoft) को मंजूरी दे दी है , खिड़कियों को फिर से शुरू किया है, वीएस को फिर से शुरू किया है।
2019.10.25 14:54:08.058 ERROR Remote: An exception occurred while invoking executor 'executor://mstestadapter/v2': Method not found: 'Void Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.set_CancellationTokenSource(System.Threading.CancellationTokenSource)'.
--- EXCEPTION #1/1 [LoggerException]
Message = “Remote: An exception occurred while invoking executor 'executor://mstestadapter/v2': Method not found: 'Void Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.set_CancellationTokenSource(System.Threading.CancellationTokenSource)'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.New.TestHost.TestHostMsTestRunner.TestExecutionEventHandler.HandleLogMessage(TestMessageLevel level, String message)
at Microsoft.TestPlatform.VsTestConsole.TranslationLayer.VsTestConsoleRequestSender.SendMessageAndListenAndReportTestResults(String messageType, Object payload, ITestRunEventsHandler eventHandler, ITestHostLauncher customHostLauncher)
(...)