-
Notifications
You must be signed in to change notification settings - Fork 0
/
xUnitMock.snippet
25 lines (25 loc) · 1017 Bytes
/
xUnitMock.snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>xUnit Mock Instance</Title>
<Shortcut>xMock</Shortcut>
<Description>Code snippet for creating a Mock instance</Description>
<Author>Chris JG</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>InterfaceToMock</ID>
<ToolTip>The interface that it being mocked</ToolTip>
<Default>InterfaceToMock</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[private Mock<$InterfaceToMock$> $InterfaceToMock$Mock = new Mock<$InterfaceToMock$>();$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>