Unit test code snippet for Visual Studio
Every single time I reinstall Visual Studio I have to search for my unit test code snippet again. So for my own reference, here it is as an attachment, which you’ll have to put in the following folder:
- C:\Users[username]\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets
or
- %UserProfile%\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets
It outputs the following code
[TestMethod]
public void FunctionName_Should_ExpectedResult_When_Condition()
{
// Arrange
// Act
// Assert
}