Created
July 30, 2018 14:15
-
-
Save jeremy-wagner/f10c2bd5d4783e99230010fcc34759c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Jeremy Wagner</Author> | |
<Description>C# Unit Test Code Snippet with 3 Parts and Assert Inconclusive</Description> | |
<HelpUrl>https://msdn.microsoft.com/en-us/library/ms165394.aspx</HelpUrl> | |
<SnippetTypes /> | |
<Keywords /> | |
<Shortcut>Test</Shortcut> | |
</Header> | |
<Snippet> | |
<References /> | |
<Imports /> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>uow</ID> | |
<Type></Type> | |
<ToolTip>Name of the unit of work or scenario under test</ToolTip> | |
<Default>UoW</Default> | |
<Function></Function> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>initialcondition</ID> | |
<Type></Type> | |
<ToolTip></ToolTip> | |
<Default>InitialCondition</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[[TestMethod] | |
public void $uow$_$initialcondition$_$expectedresult$() | |
{ | |
// Arrange | |
$end$ | |
// Act | |
// Assert | |
Assert.Inconclusive("This test has not been written yet."); | |
}]]></Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment