-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfact.snippet
More file actions
58 lines (58 loc) · 1.78 KB
/
fact.snippet
File metadata and controls
58 lines (58 loc) · 1.78 KB
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
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>fact</Title>
<Shortcut>fact</Shortcut>
<Description>Code snippet for a test method</Description>
<Author>Microsoft Corporation</Author>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>Microsoft.VisualStudio.TestTools.UnitTesting</Namespace>
</Import>
</Imports>
<Declarations>
<Literal>
<ID>name</ID>
<ToolTip>Replace with the name of the test method</ToolTip>
<Default>MyTestMethod</Default>
</Literal>
<Literal>
<ID>given</ID>
<ToolTip>Replace with the name of the test method</ToolTip>
<Default>given</Default>
</Literal>
<Literal>
<ID>when</ID>
<ToolTip>Replace with the name of the test method</ToolTip>
<Default>when</Default>
</Literal>
<Literal>
<ID>then</ID>
<ToolTip>Replace with the name of the test method</ToolTip>
<Default>then</Default>
</Literal>
<Literal Editable="false">
<ID>TestMethod</ID>
<Function>SimpleTypeName(global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethod)</Function>
</Literal>
</Declarations>
<Code Language="csharp">
<![CDATA[/// <summary>
/// Given: $given$
/// When : $when$
/// Then : $then$
/// </summary>
[Fact]
public void $name$()
{
$end$
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>