Skip to content

Instantly share code, notes, and snippets.

@lkurzyniec
Created April 2, 2020 10:44
Show Gist options
  • Save lkurzyniec/aabb06f1b891566f27eafae8687ddf61 to your computer and use it in GitHub Desktop.
Save lkurzyniec/aabb06f1b891566f27eafae8687ddf61 to your computer and use it in GitHub Desktop.
CodeSnippet for It.Is()
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>It.Is()</Title>
<Shortcut>it_is</Shortcut>
<Description>Code snippet for It.Is()</Description>
<Author>Łukasz Kurzyniec</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>Moq</Namespace>
</Import>
</Imports>
<Declarations>
<Literal>
<ID>type</ID>
<Default>CancellationToken</Default>
<ToolTip>Type to be applied</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp">
<![CDATA[It.Is<$type$>(v => $end$)]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
@lkurzyniec
Copy link
Author

lkurzyniec commented Nov 19, 2020

Place it in C:\Users\[username]\Documents\Visual Studio 2019\Code Snippets\Visual C#\My Code Snippets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment