Skip to content

Commit a143155

Browse files
Adição do snippet de teste unitário com XUnit (#1) (#2)
* Adição do snippet de teste unitário com XUnit * Update 19.snippet Co-authored-by: Daniel T. Nagami <daniel.nagami@gmail.com>
1 parent be536bb commit a143155

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

snippets/19.snippet

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>ut (xUnit Test)</Title>
6+
<Author>Rusty Divine</Author>
7+
<Description>Unit Test Template with 3 Parts</Description>
8+
<HelpUrl>https://msdn.microsoft.com/en-us/library/ms165394.aspx</HelpUrl>
9+
<SnippetTypes />
10+
<Keywords />
11+
<Shortcut>ut</Shortcut>
12+
</Header>
13+
<Snippet>
14+
<References />
15+
<Imports />
16+
<Declarations>
17+
<Literal Editable="true">
18+
<ID>uow</ID>
19+
<Type></Type>
20+
<ToolTip>Name of the unit of work or scenario under test</ToolTip>
21+
<Default>UoW</Default>
22+
<Function></Function>
23+
</Literal>
24+
<Literal Editable="true">
25+
<ID>initialcondition</ID>
26+
<Type></Type>
27+
<ToolTip></ToolTip>
28+
<Default>InitialCondition</Default>
29+
<Function></Function>
30+
</Literal>
31+
<Literal Editable="true">
32+
<ID>expectedresult</ID>
33+
<Type></Type>
34+
<ToolTip>What your expected result is</ToolTip>
35+
<Default>ExpectedResult</Default>
36+
<Function></Function>
37+
</Literal>
38+
</Declarations>
39+
<Code Language="csharp" Kind="method decl" Delimiter="$"><![CDATA[[Fact]
40+
public void $uow$_$initialcondition$_$expectedresult$()
41+
{
42+
//Arrange
43+
$end$
44+
45+
//Act
46+
47+
48+
//Assert
49+
50+
}]]></Code>
51+
</Snippet>
52+
</CodeSnippet>
53+
</CodeSnippets>

0 commit comments

Comments
 (0)