diff --git a/Abc.MoqComplete/Abc.MoqComplete.Tests/Abc.MoqComplete.Tests.csproj b/Abc.MoqComplete/Abc.MoqComplete.Tests/Abc.MoqComplete.Tests.csproj
index 5b18289..fd08c00 100644
--- a/Abc.MoqComplete/Abc.MoqComplete.Tests/Abc.MoqComplete.Tests.csproj
+++ b/Abc.MoqComplete/Abc.MoqComplete.Tests/Abc.MoqComplete.Tests.csproj
@@ -12,10 +12,10 @@
-
+
-
+
diff --git a/Abc.MoqComplete/Abc.MoqComplete.Tests/ContextAction/ContextActionBypassIsAvailable.cs b/Abc.MoqComplete/Abc.MoqComplete.Tests/ContextAction/ContextActionBypassIsAvailable.cs
index 3e8b789..306149e 100644
--- a/Abc.MoqComplete/Abc.MoqComplete.Tests/ContextAction/ContextActionBypassIsAvailable.cs
+++ b/Abc.MoqComplete/Abc.MoqComplete.Tests/ContextAction/ContextActionBypassIsAvailable.cs
@@ -1,7 +1,5 @@
using System;
-using System.Collections.Generic;
using System.Linq;
-using JetBrains.Application.Components;
using JetBrains.Diagnostics;
using JetBrains.DocumentManagers;
using JetBrains.Lifetimes;
@@ -10,8 +8,6 @@
using JetBrains.ReSharper.Feature.Services.LiveTemplates.Hotspots;
using JetBrains.ReSharper.FeaturesTestFramework.Intentions;
using JetBrains.ReSharper.Psi;
-using JetBrains.ReSharper.TestFramework;
-using JetBrains.TextControl;
using NUnit.Framework;
namespace Abc.MoqComplete.Tests.ContextAction
@@ -19,14 +15,14 @@ namespace Abc.MoqComplete.Tests.ContextAction
public abstract class ContextActionBypassIsAvailable : ContextActionExecuteTestBase
where TAction : ContextActionBase
{
- protected override void ProcessAction(Lifetime lifetime, Func actionCreator, IProject project)
+ protected override void ProcessAction(Lifetime lifetime, IProject project)
{
var solution = project.GetSolution();
var documentManager = solution.GetComponent();
- var caretPosition = GetCaretPosition() ?? CaretPositionsProcessor.PositionNames.SelectMany(_ => CaretPositionsProcessor.Positions(_) as IEnumerable).First("Caret position is not set. Please add {caret} or {selstart} to a test file.");
+ var caretPosition = GetCaretPosition() ?? CaretPositionsProcessor.PositionNames.SelectMany(i => CaretPositionsProcessor.Positions(i)).First("Caret position is not set. Please add {caret} or {selstart} to a test file.");
var textControl = OpenTextControl(lifetime, caretPosition);
var name = InitTextControl(textControl);
- var contextAction = actionCreator(textControl);
+ var contextAction = CreateContextActionCheckAvailability(textControl);
ExecuteWithGold(textControl.Document, sw =>
{
Assert.NotNull(contextAction);
@@ -48,12 +44,12 @@ protected override void ProcessAction(Lifetime lifetime, Func().CurrentSession;
+ var currentSession = HotspotSessionExecutor.Instance.CurrentSession;
if (currentSession != null)
{
while (!currentSession.HotspotSession.IsFinished)
{
- ProcessHotspot(textControl, currentSession.HotspotSession.CurrentHotspot.NotNull());
+ ProcessHotspot(textControl);
currentSession.HotspotSession.GoToNextHotspotSync();
}
}
diff --git a/Abc.MoqComplete/Abc.MoqComplete/Resources/plugin.xml b/Abc.MoqComplete/Abc.MoqComplete/Resources/plugin.xml
index 9813532..fef99b3 100644
--- a/Abc.MoqComplete/Abc.MoqComplete/Resources/plugin.xml
+++ b/Abc.MoqComplete/Abc.MoqComplete/Resources/plugin.xml
@@ -1,9 +1,9 @@
com.intellij.modules.rider
-
+
Abc.MoqComplete.Rider
MoqComplete
- 2024.1.1.1
+ 2024.2.0.1
abc-arbitrage
Code completion for Moq: Provide completion for It.IsAny, Callback, suggest mock in constructor
diff --git a/Abc.MoqComplete/Directory.Build.props b/Abc.MoqComplete/Directory.Build.props
index edd625b..7c11066 100644
--- a/Abc.MoqComplete/Directory.Build.props
+++ b/Abc.MoqComplete/Directory.Build.props
@@ -18,12 +18,12 @@
- 241.0.0.0
+ 242.0.0.0
- 2024.1.1.1
+ 2024.2.0.1
diff --git a/Abc.MoqComplete/Plugin.props b/Abc.MoqComplete/Plugin.props
index a002f14..8523d0b 100644
--- a/Abc.MoqComplete/Plugin.props
+++ b/Abc.MoqComplete/Plugin.props
@@ -1,7 +1,7 @@
- 2024.1.2
+ 2024.2.0
MoqComplete
Code completion for Moq
ABC Arbitrage Asset Management