nunit/nunit-vs-templates

Name: nunit-vs-templates

Owner: NUnit.org

Description: Visual Studio project & item templates and snippets

Created: 2015-09-25 16:18:24.0

Updated: 2018-03-10 13:40:30.0

Pushed: 2018-02-16 04:55:42.0

Homepage: https://visualstudiogallery.msdn.microsoft.com/6cd55f79-4936-49e7-b81d-c40fcd81abc7

Size: 12289

Language: C#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NUnit Visual Studio Templates

Build status

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.

Download

You can download the extension for Visual Studio 2012-2017 from the Visual Studio Gallery or from the GitHub Releases page.

Content

The project currently provides the following templates.

Project Templates

| Template | Platform | Language | |——————————|——————————|————–| | NUnit 3 Unit Test Project | Desktop | C# | | NUnit 3 Unit Test Project | Desktop | Visual Basic | | NUnit 3 Unit Test Project | Xamarin Android 1 | C# | | NUnit 3 Unit Test Project | Xamarin iOS 1 | C# | | NUnit 3 Unit Test Project | Xamarin UWP 1,2 | C# |

  1. Requires Xamarin for Visual Studio be installed.
  2. Requires the Windows 10 SDK be installed.
Item Templates

| 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 |

Code Snippets

| Snippet | Shortcut | Language | |—————–|————–|—————| | Test Fixture | ntestfixture | C# | | Test Method | ntest | C# | | Test Case | ntestcase | C# |

Contributing

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.

Prerequisites

We highly recommend that you use the following extensions for Visual Studio when working on this project.

Adding Project Templates
Adding Item Templates
Adding Code Snippets

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.