Skip to content

Commit

Permalink
Update to 2020.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lconstan committed Dec 15, 2020
1 parent 74e9cd7 commit baf1024
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected override void ProcessAction(Lifetime lifetime, Func<ITextControl, TAct
while (!currentSession.HotspotSession.IsFinished)
{
ProcessHotspot(textControl, currentSession.HotspotSession.CurrentHotspot.NotNull());
currentSession.HotspotSession.GoToNextHotspot();
currentSession.HotspotSession.GoToNextHotspotAsync().RunSynchronously();
}
}
var projectFile = documentManager.TryGetProjectFile(document);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ namespace ConsoleApp1.Tests
{
var _mocker = new AutoMocker();
var i = 0;
_mocker.Setup<ITestInterface>(x => x.Do(It.IsAny<int>())).Callback<int>(item => i++);
_mocker.Setup<ITestInterface>(x => x.Do(It.IsAny<int>())).Callback<int>(|item|(0) => i++);
Console.WriteLine(i);
}
}
}
---------------------------------------------------------
(0): ReSharper Dead Code: Parameter 'item' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ namespace ConsoleApp1.Tests
{
var test2 = new Test2();
var _mocker = new AutoMocker();
_mocker.Setup<ITest>(x => x.Do(It.IsAny<ITest>(), test2, It.IsAny<string>())).Callback<ITest, ITest2, string>((test, ptest2, test3 ) => ptest2.Temp());
_mocker.Setup<ITest>(x => x.Do(It.IsAny<ITest>(), test2, It.IsAny<string>())).Callback<ITest, ITest2, string>((|test|(0), ptest2, |test3|(1) ) => ptest2.Temp());
}
}
}
---------------------------------------------------------
(0): ReSharper Dead Code: Parameter 'test' is never used
(1): ReSharper Dead Code: Parameter 'test3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ namespace ConsoleApp1.Tests
var count = 0;
_mocker.Setup<ITestInterface, int>(x => x.BuildSomething(It.IsAny<int>(), It.IsAny<string>(), It.IsAny<bool>()))
.Returns(0)
.Callback<int, string, bool>((i, s, arg3) => count += i);
.Callback<int, string, bool>((i, |s|(0), |arg3|(1)) => count += i);
Console.WriteLine(count);
}
}
}
---------------------------------------------------------
(0): ReSharper Dead Code: Parameter 's' is never used
(1): ReSharper Dead Code: Parameter 'arg3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ namespace ConsoleApp1.Tests
{
var _mocker = new AutoMocker();
var i = 0;
_mocker.Setup<ITestInterface>(x => x.Do(It.IsAny<TheClass>())).Callback|<int>|(0)(item => i++);
_mocker.Setup<ITestInterface>(x => x.Do(It.IsAny<TheClass>())).Callback|<int>|(0)(|item|(1) => i++);
Console.WriteLine(i);
}
}
}
---------------------------------------------------------
(0): ReSharper Warning: (T) 'AutoMocker suspicious Callback method call: Generic types do not match' (E) ''
(1): ReSharper Dead Code: Parameter 'item' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ namespace ConsoleApp1.Tests
var _mocker = new AutoMocker();
var count = 0;
_mocker.Setup<ITestInterface, int>(x => x.BuildSomething(It.IsAny<int>(), It.IsAny<string>(), It.IsAny<bool>()))
.Callback|<int, string, string>|(0)((i, s, arg3) => count += i)
.Callback|<int, string, string>|(0)((i, |s|(1), |arg3|(2)) => count += i)
.Returns(0);
Console.WriteLine(count);
}
}
}
---------------------------------------------------------
(0): ReSharper Warning: (T) 'AutoMocker suspicious Callback method call: Generic types do not match' (E) ''
(1): ReSharper Dead Code: Parameter 's' is never used
(2): ReSharper Dead Code: Parameter 'arg3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ namespace ConsoleApp1.Tests
var count = 0;
_mocker.Setup<ITestInterface, int>(x => x.BuildSomething(It.IsAny<int>(), It.IsAny<string>(), It.IsAny<bool>()))
.Returns(0)
.Callback|<int, string, string>|(0)((i, s, arg3) => count += i);
.Callback|<int, string, string>|(0)((i, |s|(1), |arg3|(2)) => count += i);
Console.WriteLine(count);
}
}
}
---------------------------------------------------------
(0): ReSharper Warning: (T) 'AutoMocker suspicious Callback method call: Generic types do not match' (E) ''
(1): ReSharper Dead Code: Parameter 's' is never used
(2): ReSharper Dead Code: Parameter 'arg3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ namespace ConsoleApp1.Tests
{
var temp = new Mock<ITestInterface>();
var i = 0;
temp.Setup(x => x.Do(It.IsAny<int>())).Callback<int>(item => i++);
temp.Setup(x => x.Do(It.IsAny<int>())).Callback<int>(|item|(0) => i++);
Console.WriteLine(i);
}
}
}
---------------------------------------------------------
(0): ReSharper Dead Code: Parameter 'item' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ namespace ConsoleApp1.Tests
{
var test2 = new Test2();
var m = new Mock<ITest>();
m.Setup(x => x.Do(It.IsAny<ITest>(), test2, It.IsAny<string>())).Callback<ITest, ITest2, string>((test, ptest2, test3 ) => ptest2.Temp());
m.Setup(x => x.Do(It.IsAny<ITest>(), test2, It.IsAny<string>())).Callback<ITest, ITest2, string>((|test|(0), ptest2, |test3|(1) ) => ptest2.Temp());
}
}
}
---------------------------------------------------------
(0): ReSharper Dead Code: Parameter 'test' is never used
(1): ReSharper Dead Code: Parameter 'test3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ namespace ConsoleApp1.Tests
var count = 0;
mock.Setup(x => x.BuildSomething(It.IsAny<int>(), It.IsAny<string>(), It.IsAny<bool>()))
.Returns(0)
.Callback<int, string, bool>((i, s, arg3) => count += i);
.Callback<int, string, bool>((i, |s|(0), |arg3|(1)) => count += i);
Console.WriteLine(count);
}
}
}
---------------------------------------------------------
(0): ReSharper Dead Code: Parameter 's' is never used
(1): ReSharper Dead Code: Parameter 'arg3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ namespace ConsoleApp1.Tests
{
var temp = new Mock<ITestInterface>();
var i = 0;
temp.Setup(x => x.Do(It.IsAny<TheClass>())).Callback|<int>|(0)(item => i++);
temp.Setup(x => x.Do(It.IsAny<TheClass>())).Callback|<int>|(0)(|item|(1) => i++);
Console.WriteLine(i);
}
}
}
---------------------------------------------------------
(0): ReSharper Warning: (T) 'Suspicious Callback method call: Generic types do not match' (E) ''
(1): ReSharper Dead Code: Parameter 'item' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ namespace ConsoleApp1.Tests
var mock = new Mock<ITestInterface>();
var count = 0;
mock.Setup(x => x.BuildSomething(It.IsAny<int>(), It.IsAny<string>(), It.IsAny<bool>()))
.Callback|<int, string, string>|(0)((i, s, arg3) => count += i)
.Callback|<int, string, string>|(0)((i, |s|(1), |arg3|(2)) => count += i)
.Returns(0);
Console.WriteLine(count);
}
}
}
---------------------------------------------------------
(0): ReSharper Warning: (T) 'Suspicious Callback method call: Generic types do not match' (E) ''
(1): ReSharper Dead Code: Parameter 's' is never used
(2): ReSharper Dead Code: Parameter 'arg3' is never used
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ namespace ConsoleApp1.Tests
var count = 0;
mock.Setup(x => x.BuildSomething(It.IsAny<int>(), It.IsAny<string>(), It.IsAny<bool>()))
.Returns(0)
.Callback|<int, string, string>|(0)((i, s, arg3) => count += i);
.Callback|<int, string, string>|(0)((i, |s|(1), |arg3|(2)) => count += i);
Console.WriteLine(count);
}
}
}
---------------------------------------------------------
(0): ReSharper Warning: (T) 'Suspicious Callback method call: Generic types do not match' (E) ''
(1): ReSharper Dead Code: Parameter 's' is never used
(2): ReSharper Dead Code: Parameter 'arg3' is never used
4 changes: 2 additions & 2 deletions Abc.MoqComplete/Abc.MoqComplete/Resources/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<idea-plugin>
<depends>com.intellij.modules.rider</depends>
<idea-version since-build="202.6397" until-build="202.*" />
<idea-version since-build="203.5981" until-build="203.*" />
<id>Abc.MoqComplete.Rider</id>
<name>MoqComplete</name>
<version>1.2.12</version>
<version>1.99.10</version>
<vendor url="https://github.com/Abc-Arbitrage/Abc.MoqComplete">ABC Arbitrage Asset Management</vendor>
<description><![CDATA[
<p>Code completion for Moq: Provide completion for It.IsAny, Callback, suggest mock in constructor</p>
Expand Down
2 changes: 1 addition & 1 deletion Abc.MoqComplete/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.4.2</Version>
<Version>1.4.3</Version>
</PropertyGroup>

</Project>
1 change: 1 addition & 0 deletions Abc.MoqComplete/MoqComplete.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "@ Solution Items", "@ Solut
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
Plugin.props = Plugin.props
Abc.MoqComplete\Resources\plugin.xml = Abc.MoqComplete\Resources\plugin.xml
EndProjectSection
EndProject
Global
Expand Down
2 changes: 1 addition & 1 deletion Abc.MoqComplete/Plugin.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<SdkVersion>2020.2.0</SdkVersion>
<SdkVersion>2020.3.0</SdkVersion>
<Title>MoqComplete</Title>
<Description>Code completion for Moq</Description>
<Authors>ABC Arbitrage Asset Management</Authors>
Expand Down

0 comments on commit baf1024

Please sign in to comment.