Skip to content

Instantly share code, notes, and snippets.

@mu88
Created March 19, 2021 16:32
Show Gist options
  • Save mu88/99bb3c4c3447a210b3c9c67470398e84 to your computer and use it in GitHub Desktop.
Save mu88/99bb3c4c3447a210b3c9c67470398e84 to your computer and use it in GitHub Desktop.
ReSharper Live Template
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace $Namespace$
{
[TestClass]
public class $TestClassName$
{
$END$
}
}
[Xunit.Fact]
public async Task $TestName$()
{
// Arrange
var testee = new $TestType$();
$END$
// Act
// Assert
throw new System.NotImplementedException();
}
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
$SELECTION$
stopwatch.Stop();$END$
var service = new MyCustomService();
await service.ExecuteLongRunningProcessAsync();
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
var service = new MyCustomService();
await service.ExecuteLongRunningProcessAsync();
stopwatch.Stop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment