QuickFix testing

I created nunit test file, sorce test file and gold file. But my quickfix does not run. I did not find any information how to test the quickfix

TestFixture]
public class WindowOnloadQuickFixTest : QuickFixAvailabilityTestBase
{
     protected override bool HighlightingPredicate(IHighlighting highlighting, IPsiSourceFile psiSourceFile)
     {
          return highlighting is WindowOnLoadHighlighting;
     }


     [TestCase("test01.js")]
     public void Test(string file)
     {
          DoTestFiles(file);
     }
}


Test file

function window.onload()
{
     
}


Gold file


------------------------------------------------


This is error that I have

TearDown : JetBrains.TestFramework.Utils.TestLoggerListener+TestWrapperException : 2 exceptions were thrown.
#1: Gold The test output differs from the gold file.

--- EXCEPTION #1/2 [TestFailureException]
Message = “The test output differs from the gold file.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.TestFramework.Utils.TestFailureException
Data.ComparisonFile = file:///C:/Users/xx/AppData/Local/Temp/Pykepyx.bat
Data.UpdateGold = file:///C:/Users/xx/AppData/Local/Temp/Lecocav.bat
Data.GoldFile = file:///D:/xx/Tools/ResharperDeveloperTools/ResharperWebDevTools.Tests/test/data/WindowOnloadQuickFixTest/test01.js.gold#select
Data.Directory = D:\xx\Tools\ResharperDeveloperTools\ResharperWebDevTools.Tests\test\data\WindowOnloadQuickFixTest
Data.TempFile = file:///D:/xx/Tools/ResharperDeveloperTools/ResharperWebDevTools.Tests/test/data/WindowOnloadQuickFixTest/test01.js.tmp#select
Data.Cmd = file:///D:/xx/Tools/ResharperDeveloperTools/ResharperWebDevTools.Tests/test/data/WindowOnloadQuickFixTest/#cmd
Data.Diff = “
  -1 $(window).load(function()
   +1 |function window|(0).onload()
  
   +3      
   +4 }
  
   -6 });
   -7  
   -8  ------------------------------------------------
   -9  
   +6 ------------------------------------------------
   +7 0: window.onload is not supported in any browsers
   +8 QUICKFIXES:
   +9 Replace to jquery load
  +10 --Replace to jquery load in file
  +11 --Replace to jquery load in project
  +12 --Replace to jquery load in solution
  +13

HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.Tests.Framework.Shell
StackTraceString = “
  at JetBrains.TestFramework.Utils.TestUtil.CheckDataAgainstGoldFile(Byte[] testData, FileSystemPath pathGold, Boolean throwOnError, Encoding encoding, Boolean caseSensitive, Boolean fullDiff)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithSpecifiedGold(FileSystemPath goldPath, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff, Boolean failTestIfCheckFails)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Gold The test output differs from the gold file.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithSpecifiedGold(FileSystemPath goldPath, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff, Boolean failTestIfCheckFails)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithSpecifiedGold(FileSystemPath goldPath, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithGold(String testName, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.ExecuteWithGold(FileSystemPath testLocation, Action`1 test, Boolean caseSensitive, Encoding encoding)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.ExecuteWithGold(IProjectFile projectFile, Action`1 test, Boolean caseSensitive, Encoding encoding)
     at JetBrains.ReSharper.FeaturesTestFramework.Intentions.QuickFixAvailabilityTestBase.DoTest(IProject testProject)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSingleProject.DoTest()
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTest()
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.<>c__DisplayClass20.<DoTestSolution>b__1f(Lifetime lt, ISolution solution)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.<>c__DisplayClass1d.<DoTestSolution>b__15()
     at JetBrains.Application.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
     at JetBrains.TestFramework.BaseTest.<>c__DisplayClass2e.<RunGuarded>b__2d()
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     at JetBrains.TestFramework.BaseTest.RunGuarded(Action action)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.DoTestSolution(Func`2 testSolutionConfiguration, Action`2 test)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.DoTestSolution(Func`2 testSolutionConfiguration, Action test)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.DoTestSolution(Func`2 testSolutionConfiguration, Func`2 wrapper)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSingleProject.DoTestSolution(String[] fileSet)
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTestSolution(NamedPositionsProcessor positionsProcessor)
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTestSolution(String[] fileSet)
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTestFiles(String[] testFiles)
     at xx.ResharperWebDevTools.Tests.WindowOnloadQuickFixTest.Test(String file) in d:\xx\Tools\ResharperDeveloperTools\ResharperWebDevTools.Tests\WindowOnloadQuickFixTest.cs:line 21
     at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
     at NUnit.Core.Reflect.InvokeMethod(MethodInfo method, Object fixture, Object[] args)
     at NUnit.Core.TestMethod.RunTestMethod()
     at NUnit.Core.TestMethod.RunTestCase(TestResult testResult)
     at NUnit.Core.TestMethod.RunTest()
     at NUnit.Core.NUnitTestMethod.RunTest()
     at NUnit.Core.TestMethod.RunRepeatedTest()
     at NUnit.Core.TestMethod.RunTestInContext()
     at NUnit.Core.TestMethod.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.ParameterizedMethodSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestFixture.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.SetUpFixture.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.SimpleTestRunner.Run(EventListener listener, ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)
     at JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTestRunner.Run(EventListener listener, ITestFilter filter)
     at JetBrains.ReSharper.UnitTestRunner.nUnit.BuiltInNUnitRunner.RunTests(IRemoteTaskServer server, Dictionary`2 tests, Dictionary`2 fixtures, List`1 explicitly, Boolean useAddins, List`1 assemblies)
     at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
     at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
     at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args)
     at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)
     at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)
     at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)


#2: The test output differs from the gold file.

--- EXCEPTION #1/2 [TestFailureException]
Message = “The test output differs from the gold file.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.TestFramework.Utils.TestFailureException
Data.ComparisonFile = file:///C:/Users/xx/AppData/Local/Temp/Pykepyx.bat
Data.UpdateGold = file:///C:/Users/xx/AppData/Local/Temp/Lecocav.bat
Data.GoldFile = file:///D:/xx/Tools/ResharperDeveloperTools/ResharperWebDevTools.Tests/test/data/WindowOnloadQuickFixTest/test01.js.gold#select
Data.Directory = D:\xx\Tools\ResharperDeveloperTools\ResharperWebDevTools.Tests\test\data\WindowOnloadQuickFixTest
Data.TempFile = file:///D:/xx/Tools/ResharperDeveloperTools/ResharperWebDevTools.Tests/test/data/WindowOnloadQuickFixTest/test01.js.tmp#select
Data.Cmd = file:///D:/xx/Tools/ResharperDeveloperTools/ResharperWebDevTools.Tests/test/data/WindowOnloadQuickFixTest/#cmd
Data.Diff = “
  -1 $(window).load(function()
   +1 |function window|(0).onload()
  
   +3      
   +4 }
  
   -6 });
   -7  
   -8  ------------------------------------------------
   -9  
   +6 ------------------------------------------------
   +7 0: window.onload is not supported in any browsers
   +8 QUICKFIXES:
   +9 Replace to jquery load
  +10 --Replace to jquery load in file
  +11 --Replace to jquery load in project
  +12 --Replace to jquery load in solution
  +13

Data.ReentrancyGuard.ActionName = DoTestSolution
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.Tests.Framework.Shell
StackTraceString = “
  at JetBrains.TestFramework.Utils.TestUtil.CheckDataAgainstGoldFile(Byte[] testData, FileSystemPath pathGold, Boolean throwOnError, Encoding encoding, Boolean caseSensitive, Boolean fullDiff)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithSpecifiedGold(FileSystemPath goldPath, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff, Boolean failTestIfCheckFails)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithSpecifiedGold(FileSystemPath goldPath, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff)
     at JetBrains.TestFramework.BaseTestNoShell.ExecuteWithGold(String testName, Action`1 test, Boolean caseSensitive, Encoding encoding, Boolean fullDiff)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.ExecuteWithGold(FileSystemPath testLocation, Action`1 test, Boolean caseSensitive, Encoding encoding)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.ExecuteWithGold(IProjectFile projectFile, Action`1 test, Boolean caseSensitive, Encoding encoding)
     at JetBrains.ReSharper.FeaturesTestFramework.Intentions.QuickFixAvailabilityTestBase.DoTest(IProject testProject)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSingleProject.DoTest()
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTest()
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.<>c__DisplayClass20.<DoTestSolution>b__1f(Lifetime lt, ISolution solution)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.<>c__DisplayClass1d.<DoTestSolution>b__15()
     at JetBrains.Application.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
     at JetBrains.TestFramework.BaseTest.<>c__DisplayClass2e.<RunGuarded>b__2d()
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “The test output differs from the gold file.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
     at JetBrains.Util.ILoggerEx.Error(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
     at JetBrains.Util.Logging.Logger.LogException(Exception ex)
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     at JetBrains.TestFramework.BaseTest.RunGuarded(Action action)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.DoTestSolution(Func`2 testSolutionConfiguration, Action`2 test)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.DoTestSolution(Func`2 testSolutionConfiguration, Action test)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSolution.DoTestSolution(Func`2 testSolutionConfiguration, Func`2 wrapper)
     at JetBrains.ReSharper.TestFramework.BaseTestWithSingleProject.DoTestSolution(String[] fileSet)
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTestSolution(NamedPositionsProcessor positionsProcessor)
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTestSolution(String[] fileSet)
     at JetBrains.ReSharper.TestFramework.BaseTestWithTextControl`1.DoTestFiles(String[] testFiles)
     at xx.ResharperWebDevTools.Tests.WindowOnloadQuickFixTest.Test(String file) in d:\xx\Tools\ResharperDeveloperTools\ResharperWebDevTools.Tests\WindowOnloadQuickFixTest.cs:line 21
     at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
     at NUnit.Core.Reflect.InvokeMethod(MethodInfo method, Object fixture, Object[] args)
     at NUnit.Core.TestMethod.RunTestMethod()
     at NUnit.Core.TestMethod.RunTestCase(TestResult testResult)
     at NUnit.Core.TestMethod.RunTest()
     at NUnit.Core.NUnitTestMethod.RunTest()
     at NUnit.Core.TestMethod.RunRepeatedTest()
     at NUnit.Core.TestMethod.RunTestInContext()
     at NUnit.Core.TestMethod.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.ParameterizedMethodSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestFixture.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.SetUpFixture.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)
     at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)
     at NUnit.Core.SimpleTestRunner.Run(EventListener listener, ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)
     at JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTestRunner.Run(EventListener listener, ITestFilter filter)
     at JetBrains.ReSharper.UnitTestRunner.nUnit.BuiltInNUnitRunner.RunTests(IRemoteTaskServer server, Dictionary`2 tests, Dictionary`2 fixtures, List`1 explicitly, Boolean useAddins, List`1 assemblies)
     at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
     at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
     at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args)
     at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)
     at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)
     at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)


--TearDown
   at JetBrains.Util.Tests.ThrowsAccumulatedLoggerExceptions.ThrowLoggedExceptions()
   at JetBrains.TestFramework.BaseTest.ThrowLoggedExceptions(Boolean bGC)
   at JetBrains.TestFramework.BaseTest.StopCollectingExceptions()
   at JetBrains.TestFramework.BaseTestNoShell.TearDown()
   at JetBrains.TestFramework.BaseTest.TearDown()

4 comments
Comment actions Permalink

Off the top of my head, I suspect the issue is that you're not telling the test where the caret should be when checking if the quickfix is available. Try adding {caret} (with the curly braces) at the right position, e.g.

function win{caret}dow.onload()
{
     
}


Let me know if this isn't the case, and I'll take a proper look.

0
Comment actions Permalink

I've added the curret position but this is not a case.

0
Comment actions Permalink

Actually, this looks like it's working. You're running an availability test, not invoking the quick fix. So the gold file you're using is incorrect. When the test runs, it finds what quick fixes are available in the file, and adds them to the .tmp file. It then compares this .tmp file to the .gold file, and shows that it's different, because it's including information about the available fixes. E.g.:

+7 0: window.onload is not supported in any browsers
   +8 QUICKFIXES:
   +9 Replace to jquery load
  +10 --Replace to jquery load in file
  +11 --Replace to jquery load in project
  +12 --Replace to jquery load in solution
  +13

If you want to test what happens when you invoke the quick fix, you need to inherit a class from QuickFixTestBase<TQuickFix>, where TQuickFix is your quick fix class. This requires setting the {caret} identifier to where you intend the quick fix to be invoked. The .gold file should then be what the file looks like after the quick fix is invoked, with the {caret} showing where the caret ends up.

0
Comment actions Permalink

Thanks. Now it works as expected.

0

Please sign in to leave a comment.