Skip to content

Commit

Permalink
Housekeeping (#4)
Browse files Browse the repository at this point in the history
* Fix typo
* Change ExtensionId
* update readme with screenshots
* Use Microsoft.VsSDK.targets from nuget
  • Loading branch information
MrLuje authored Aug 21, 2018
1 parent e2254a1 commit 0bf56a9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,17 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="Resources\mocking-helpers.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Resources\moq.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Resources\nsubstitute.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools\tools\vssdk\Microsoft.VsSDK.targets" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools\tools\vssdk\Microsoft.VsSDK.targets')" Label="Paket" />
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools\build\Microsoft.VSSDK.BuildTools.targets')" Label="Paket" />
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Metadata>
<Identity Id="Mocking.Helpers..9e3b8d25-be45-4b82-9e8d-eeceadcc1af3" Version="1.0.0.0" Language="en-US" Publisher="MrLuje"/>
<Identity Id="Mocking.Helpers.DC82BF19-0482-4D47-A1FF-7F4CBBAA44D4" Version="1.0.0.0" Language="en-US" Publisher="MrLuje"/>
<DisplayName>Mocking.Helpers</DisplayName>
<Description xml:space="preserve">Collection of features to help working with various mocking framework</Description>
<MoreInfo>https://github.com/MrLuje/Mocking.Helpers</MoreInfo>
<Icon>Resources\mocking-helpers.png</Icon>
<PreviewImage>Resources\moq.png</PreviewImage>
<Tags>mocking roslyn moq</Tags>
<Tags>mocking roslyn moq nsubstitute</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,16.0)" />
Expand Down
2 changes: 1 addition & 1 deletion Mocking.Helpers/Mocking.Helpers/SyntaxHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static internal IEnumerable<IMethodSymbol> GetCandidatesMockedMethodSignatures(S
var mockSignatures = new List<IMethodSymbol>();
var symbolInfo = semanticModel.GetSymbolInfo(methodToMock);

// not what are searching but still a method
// not what we are searching but still a method
if (symbolInfo.CandidateReason == CandidateReason.None && symbolInfo.Symbol is IMethodSymbol methodSymbol)
{
mockSignatures.Add(methodSymbol);
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
Helpers for .net mocking frameworks as a Visual Studio 2017 extension

## Moq
Support autocompletion of _Setup_ method

Support autocompletion of _It.IsAny_ in _Setup_ method
![moq](Mocking.Helpers/Mocking.Helpers.Vsix/Resources/moq.png)

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

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

It will not work if Visual Studio is configured to used another completion mechanism than Intellisense (e.g. R#)

0 comments on commit 0bf56a9

Please sign in to comment.