Skip to content

Commit 0bf56a9

Browse files
authored
Housekeeping (#4)
* Fix typo * Change ExtensionId * update readme with screenshots * Use Microsoft.VsSDK.targets from nuget
1 parent e2254a1 commit 0bf56a9

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

Mocking.Helpers/Mocking.Helpers.Vsix/Mocking.Helpers.Vsix.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,17 @@
9393
</BootstrapperPackage>
9494
</ItemGroup>
9595
<ItemGroup>
96+
<Content Include="Resources\mocking-helpers.png">
97+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
98+
<IncludeInVSIX>true</IncludeInVSIX>
99+
</Content>
96100
<Content Include="Resources\moq.png">
97101
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
98102
<IncludeInVSIX>true</IncludeInVSIX>
99103
</Content>
104+
<Content Include="Resources\nsubstitute.png" />
100105
</ItemGroup>
101106
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
102-
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
107+
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools\tools\vssdk\Microsoft.VsSDK.targets" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools\tools\vssdk\Microsoft.VsSDK.targets')" Label="Paket" />
103108
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools\build\Microsoft.VSSDK.BuildTools.targets')" Label="Paket" />
104109
</Project>
7.92 KB
Loading
24.6 KB
Loading

Mocking.Helpers/Mocking.Helpers.Vsix/source.extension.vsixmanifest

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="Mocking.Helpers..9e3b8d25-be45-4b82-9e8d-eeceadcc1af3" Version="1.0.0.0" Language="en-US" Publisher="MrLuje"/>
4+
<Identity Id="Mocking.Helpers.DC82BF19-0482-4D47-A1FF-7F4CBBAA44D4" Version="1.0.0.0" Language="en-US" Publisher="MrLuje"/>
55
<DisplayName>Mocking.Helpers</DisplayName>
66
<Description xml:space="preserve">Collection of features to help working with various mocking framework</Description>
77
<MoreInfo>https://github.com/MrLuje/Mocking.Helpers</MoreInfo>
8+
<Icon>Resources\mocking-helpers.png</Icon>
89
<PreviewImage>Resources\moq.png</PreviewImage>
9-
<Tags>mocking roslyn moq</Tags>
10+
<Tags>mocking roslyn moq nsubstitute</Tags>
1011
</Metadata>
1112
<Installation>
1213
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,16.0)" />

Mocking.Helpers/Mocking.Helpers/SyntaxHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static internal IEnumerable<IMethodSymbol> GetCandidatesMockedMethodSignatures(S
6666
var mockSignatures = new List<IMethodSymbol>();
6767
var symbolInfo = semanticModel.GetSymbolInfo(methodToMock);
6868

69-
// not what are searching but still a method
69+
// not what we are searching but still a method
7070
if (symbolInfo.CandidateReason == CandidateReason.None && symbolInfo.Symbol is IMethodSymbol methodSymbol)
7171
{
7272
mockSignatures.Add(methodSymbol);

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
Helpers for .net mocking frameworks as a Visual Studio 2017 extension
66

77
## Moq
8-
Support autocompletion of _Setup_ method
9-
8+
Support autocompletion of _It.IsAny_ in _Setup_ method
9+
![moq](Mocking.Helpers/Mocking.Helpers.Vsix/Resources/moq.png)
1010

11+
## NSubstitute
12+
Support autocompletion of _Arg.Any_ in _For_ method
13+
![moq](Mocking.Helpers/Mocking.Helpers.Vsix/Resources/nsubstitute.png)
1114

1215
## Troubleshooting
1316
This extension relies on [Roslyn](https://github.com/dotnet/roslyn) for type/methods parsing.
14-
It will not work if Visual Studio is configured to used another completion mechanism than Intellisense (eg: R#)
17+
18+
It will not work if Visual Studio is configured to used another completion mechanism than Intellisense (e.g. R#)

0 commit comments

Comments
 (0)