-
Notifications
You must be signed in to change notification settings - Fork 0
/
xunittest.snippet
52 lines (51 loc) · 1.51 KB
/
xunittest.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Unit Test</Title>
<Author>Alberto Corrales</Author>
<Description>Unit Test Template with recommended format</Description>
<HelpUrl>https://msdn.microsoft.com/en-us/library/ms165394.aspx</HelpUrl>
<SnippetTypes />
<Keywords />
<Shortcut>xutest</Shortcut>
</Header>
<Snippet>
<References />
<Imports />
<Declarations>
<Literal Editable="true">
<ID>testedmethodname</ID>
<Type></Type>
<ToolTip>Name of the method under test</ToolTip>
<Default>TestedMethodName</Default>
<Function></Function>
</Literal>
<Literal Editable="true">
<ID>inputdata</ID>
<Type></Type>
<ToolTip>Input data </ToolTip>
<Default>InputData</Default>
<Function></Function>
</Literal>
<Literal Editable="true">
<ID>expectedresult</ID>
<Type></Type>
<ToolTip>What your expected result is</ToolTip>
<Default>ExpectedResult</Default>
<Function></Function>
</Literal>
</Declarations>
<Code Language="csharp" Kind="method decl" Delimiter="$">
<![CDATA[[Fact]
public void $testedmethodname$_$inputdata$_$expectedresult$()
{
//Arrange
$end$
//Act
//Assert
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>