Visual Studio project & item templates and snippets
32
stars
123
commits
Vim Snippet
primary language
Jan 27, 2025
updated
This project has been archived.
This is a VSIX project, which we don't support anymore. Use dotnet new nunit instead, or install using Visual Studio - New Project dialog, selecting NUnit.
An extension that adds Project and Item templates to Visual Studio along with Code Snippets to make unit testing with NUnit 3 easier. We currently only plan to add templates for NUnit 3, but will add templates for NUnit 2.6.4 if there is demand.
This project is build using SideWaffle, many thanks for their great work.
You can download the extension for Visual Studio 2012-2019 from the Visual Studio Gallery or from the GitHub Releases page.
The project currently provides the following templates.
| Template | Platform | Language | Project Type |
|---|---|---|---|
| NUnit 3 Unit Test Project | Desktop | C# | Traditional Style 3 |
| NUnit 3 Unit Test Project | Desktop | C# | Sdk Style |
| NUnit 3 Unit Test Project | Desktop .NET Core | C# | SDK Style |
| NUnit 3 Unit Test Project | Desktop | Visual Basic | Traditional Style 3 |
| NUnit 3 Unit Test Project | Xamarin Android 1 | C# | Traditional Style |
| NUnit 3 Unit Test Project | Xamarin iOS 1 | C# | Traditional Style |
| NUnit 3 Unit Test Project | Xamarin UWP 1,2 | C# | Traditional Style |
| Template | Language | Description |
|---|---|---|
| NUnit Test Fixture | C# | An NUnit unit test class |
| NUnit Test Fixture | Visual Basic | An NUnit unit test class |
| NUnit SetUp Fixture | C# | Code that runs before and after all the tests in the assembly |
| NUnit SetUp Fixture | Visual Basic | Code that runs before and after all the tests in the assembly |
| Snippet | Shortcut | Language | Comment |
|---|---|---|---|
| Test Fixture | ntestfixture | C# | |
| Test Method | ntest | C# | |
| Test Case | ntestcase | C# | |
| Test Case Source | ntestcasesource | C# | Form 1 |
| Test Case Source | ntestcasesource2 | C# | Form 2 |
| Test Case Source | ntestcasesource3 | C# | Form 3 |
| Test Case Source | ntestcasesource4 | C# | Form 3 with testdata |
| Assert.Multiple | nmultiple | C# | Surround snippet |
Note: "Form": Refer to documentation for details
Don't see the template you need or your favorite code snippet? All you need to do is fork the repository, add it and create a pull request. We love help and contributions.
For information on how to add templates and snippets, head over to the SideWaffle Documentation.
There is also a great walkthrough on creating templates in the June 2015 MSDN Magazine.
We highly recommend that you use the following extensions for Visual Studio when working on this project.
_Definitions\_project.vstemplate.xml and _preprocess.xml.nunit.templates\Packages directory, you will have to add it, set it as Include in VSIX and add it to the vsixmanifest file.Vim Snippet
46.6%
C#
36.1%
HTML
8.4%
Visual Basic .NET
5.1%
CSS
3.8%
Visual Studio project & item templates and snippets
32
stars
123
commits
Vim Snippet
primary language
Jan 27, 2025
updated
This project has been archived.
This is a VSIX project, which we don't support anymore. Use dotnet new nunit instead, or install using Visual Studio - New Project dialog, selecting NUnit.
An extension that adds Project and Item templates to Visual Studio along with Code Snippets to make unit testing with NUnit 3 easier. We currently only plan to add templates for NUnit 3, but will add templates for NUnit 2.6.4 if there is demand.
This project is build using SideWaffle, many thanks for their great work.
You can download the extension for Visual Studio 2012-2019 from the Visual Studio Gallery or from the GitHub Releases page.
The project currently provides the following templates.
| Template | Platform | Language | Project Type |
|---|---|---|---|
| NUnit 3 Unit Test Project | Desktop | C# | Traditional Style 3 |
| NUnit 3 Unit Test Project | Desktop | C# | Sdk Style |
| NUnit 3 Unit Test Project | Desktop .NET Core | C# | SDK Style |
| NUnit 3 Unit Test Project | Desktop | Visual Basic | Traditional Style 3 |
| NUnit 3 Unit Test Project | Xamarin Android 1 | C# | Traditional Style |
| NUnit 3 Unit Test Project | Xamarin iOS 1 | C# | Traditional Style |
| NUnit 3 Unit Test Project | Xamarin UWP 1,2 | C# | Traditional Style |
| Template | Language | Description |
|---|---|---|
| NUnit Test Fixture | C# | An NUnit unit test class |
| NUnit Test Fixture | Visual Basic | An NUnit unit test class |
| NUnit SetUp Fixture | C# | Code that runs before and after all the tests in the assembly |
| NUnit SetUp Fixture | Visual Basic | Code that runs before and after all the tests in the assembly |
| Snippet | Shortcut | Language | Comment |
|---|---|---|---|
| Test Fixture | ntestfixture | C# | |
| Test Method | ntest | C# | |
| Test Case | ntestcase | C# | |
| Test Case Source | ntestcasesource | C# | Form 1 |
| Test Case Source | ntestcasesource2 | C# | Form 2 |
| Test Case Source | ntestcasesource3 | C# | Form 3 |
| Test Case Source | ntestcasesource4 | C# | Form 3 with testdata |
| Assert.Multiple | nmultiple | C# | Surround snippet |
Note: "Form": Refer to documentation for details
Don't see the template you need or your favorite code snippet? All you need to do is fork the repository, add it and create a pull request. We love help and contributions.
For information on how to add templates and snippets, head over to the SideWaffle Documentation.
There is also a great walkthrough on creating templates in the June 2015 MSDN Magazine.
We highly recommend that you use the following extensions for Visual Studio when working on this project.
_Definitions\_project.vstemplate.xml and _preprocess.xml.nunit.templates\Packages directory, you will have to add it, set it as Include in VSIX and add it to the vsixmanifest file.Vim Snippet
46.6%
C#
36.1%
HTML
8.4%
Visual Basic .NET
5.1%
CSS
3.8%