MG7
MG7

Reputation: 153

xUnit C# code snippets to speed up testing creation

I am using xUnit to test some existing C# project. I would like to speed up my test creation with code snippets.

I looked into Viusual Studio => Tools => Code Snippets Manager and I could not find anything, but maybe I missed something.

Does anybody know if there are some default code snippets for xUnit?

Upvotes: 2

Views: 490

Answers (1)

Good Night Nerd Pride
Good Night Nerd Pride

Reputation: 8500

The Visual Studio extension xUnit Code Snippets comes with snippets to create test methods and test classes (among other things).

You can also always create your own snippets: https://learn.microsoft.com/en-us/visualstudio/ide/walkthrough-creating-a-code-snippet?view=vs-2022

Consider creating a pull request in the xUnit Code Snippets GitHub repo in case you come up with some helpful snippets.

Upvotes: 2

Related Questions