This is based upon my original UnitTestMethod.Snippet Gist, this C# Code Snippet can be used within Visual Studio to generates Asynchronous Unit Test Methods (Functions).
How to Use
- Save the Code Snippet file as UnitTestMethod.Snippet
- For for VS 2015, move the UnitTestMethod.Snippet file into this directory: %userprofile%\Documents\Visual Studio 2015\Code Snippets\Visual C#\My Code Snippets
- Once installed type: utestasync + [Tab] + [Tab]
[TestMethod]
public void MethodName_Condition_ExpectedResult()
{
// Arrange
// Act
var result = await Task.FromResult<object>(null);
// Assert
Assert.Fail();
}
Code Snippet: Unit Test Methods