This is "code snippets" which can come in handy when writing tests in xUnit/NUnit, among others. I came up with this idea today while learning unit tests, from the fact that I didn't want to write AAA (Arrange, Act, Assert) every now and then, and I couldn't find a ready-made nuget that would have it, I decided to check on the Internet how you can write such a package and such a snippet yourself, after a few hours ready:). I tested it on Visual Studio 2022 Community, but on other versions it should also work.
This will save you a lot of time in creating unit methods on xUnit / NUnit framework.
How to install
How to use
Display AAA (Arrange, Act, Assert)
Then, this snippet expanded following C# code.
xUnit - Create Fact method with AAA
On C# source code in Visual Studio, you can insert xUnit Fact method by following key typing.
xUnit - Create Fact method with DisplayName and AAA
xUnit - Create Fact async method with AAA
xUnit - Create Fact async method with DisplayName and AAA
xUnit - Create Theory method with AAA
xUnit - Create Theory method with DisplayName and AAA
xUnit - Create Theory async method with AAA
xUnit - Create Theory async method DisplayName and AAA
NUnit - Create Test method with AAA
NUnit - Create Test async method with AAA
If you would like to somehow repay me for my work in the form of ramen, for example, you can find more information here (PL): SuppMe