Search This Blog

Monday, August 31, 2020

Creating Unit Test Fact method code snippet in Visual Studio

Save the following xml file with the .snippet extension.

Afterwards, load it into the Code Snippet Manager in Visual Studio via 

Tools -> Code Snippet Manager -> Import

That's it. Type tt + Tab and the code block between CDATA[...] is inserted.

 <?xml version="1.0" encoding="utf-8"?>

<CodeSnippets xmlns="">

<CodeSnippet Format="1.0.0">


<Title>UT Fact</Title>


<Description>Add Unit Test Fact</Description>




<Code Language="CSharp">



public async Task ObjectBeingTested_Action_ExpectedResult()










No comments:

Post a Comment