diff --git a/README.md b/README.md index 9022bf7..0519a1c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # NUnit Visual Studio Templates +[![Build status](https://ci.appveyor.com/api/projects/status/lx7icpyp4g0m0223/branch/master?svg=true)](https://ci.appveyor.com/project/CharliePoole/nunit-templates/branch/master) + 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 @@ -30,9 +32,9 @@ The project currently provides the following templates. | Snippet | Shortcut | Language | |-----------------|--------------|---------------| -| Test Fixture | ntf | C# | +| Test Fixture | ntestfixture | C# | | Test Method | ntest | C# | -| Test Case | ntc | C# | +| Test Case | ntestcase | C# | ## Contributing @@ -41,7 +43,12 @@ 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](https://github.com/ligershark/side-waffle/wiki) +[SideWaffle Documentation](https://github.com/ligershark/side-waffle/wiki). + +There is also a great walkthrough on creating templates in the +[June 2015 MSDN Magazine](https://msdn.microsoft.com/en-us/magazine/mt147242.aspx). + +### Prerequisites We highly recommend that you use the following extensions for Visual Studio when working on this project. @@ -57,11 +64,11 @@ the NUnit project defaults in Visual Studio. ### Adding Project Templates -TBC +*TBC* ### Adding Item Templates -TBC +*TBC* ### Adding Code Snippets diff --git a/nunit.templates/Snippets/CSharp/Test/ntestcase.snippet b/nunit.templates/Snippets/CSharp/Test/ntestcase.snippet index c392db9..46f0d5a 100644 --- a/nunit.templates/Snippets/CSharp/Test/ntestcase.snippet +++ b/nunit.templates/Snippets/CSharp/Test/ntestcase.snippet @@ -53,20 +53,13 @@ - TestxCase + TestCase SimpleTypeName(global::NUnit.Framework.TestCase) - - TestCase - TestCase - TestCase - - -
NUnit Test Class - ntf + ntestfixture Code snippet for a test class Rob Prouse diff --git a/nunit.templates/Snippets/CSharp/Test/testcase.snippet b/nunit.templates/Snippets/CSharp/Test/testcase.snippet deleted file mode 100644 index f08d962..0000000 --- a/nunit.templates/Snippets/CSharp/Test/testcase.snippet +++ /dev/null @@ -1,77 +0,0 @@ - - - -
- - Expansion - - NUnit TestCase Method - Rob Prouse - Code snippet for a test method with TestCases - - - ntc -
- - - - NUnit.Framework - - - - - nunit.framework.dll - - - - - name - Replace with the name of the test method - TestMethod - - - - - params - Replace with the parameters to the test method - 1 - - - - - type - Replace with the type of the first parameter - int - - - - - param - Replace with the name of the first parameter - x - - - - - TestxCase - - - - - SimpleTypeName(global::NUnit.Framework.TestCase) - - - TestCase - TestCase - TestCase - - - - - - -
-
\ No newline at end of file diff --git a/nunit.templates/nunit.templates.csproj b/nunit.templates/nunit.templates.csproj index 8352ac6..fe8a173 100644 --- a/nunit.templates/nunit.templates.csproj +++ b/nunit.templates/nunit.templates.csproj @@ -67,6 +67,10 @@ Designer + + Always + true + Always true diff --git a/nunit.templates/preview.png b/nunit.templates/preview.png new file mode 100644 index 0000000..052e6c6 Binary files /dev/null and b/nunit.templates/preview.png differ diff --git a/nunit.templates/source.extension.vsixmanifest b/nunit.templates/source.extension.vsixmanifest index cd852c0..ca7fdcd 100644 --- a/nunit.templates/source.extension.vsixmanifest +++ b/nunit.templates/source.extension.vsixmanifest @@ -1,22 +1,25 @@  - - - NUnit Templates for Visual Studio - Provides Visual Studio project and item templates for NUnit 3 along with code snippets. - http://nunit.org - license.rtf - nunit3_32x32.png - - - - - - - - - - - - + + + NUnit Templates for Visual Studio + Provides Visual Studio project and item templates for NUnit 3 along with code snippets. + https://github.com/nunit/nunit.templates + license.rtf + nunit3_32x32.png + preview.png + tdd, test, NUnit, NUnit3, template, snippet + + + + + + + + + + + + + \ No newline at end of file diff --git a/nunit.tests.csharp/nunit.tests.csharp.csproj b/nunit.tests.csharp/nunit.tests.csharp.csproj index 6f51546..38b7a59 100644 --- a/nunit.tests.csharp/nunit.tests.csharp.csproj +++ b/nunit.tests.csharp/nunit.tests.csharp.csproj @@ -31,17 +31,10 @@ - ..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll + $(SolutionDir)packages\NUnit.3.0.1\lib\net45\nunit.framework.dll True - - - - - - - diff --git a/nunit.tests.vb/nunit.tests.vb.vbproj b/nunit.tests.vb/nunit.tests.vb.vbproj index 6d3e056..71ceaa1 100644 --- a/nunit.tests.vb/nunit.tests.vb.vbproj +++ b/nunit.tests.vb/nunit.tests.vb.vbproj @@ -44,26 +44,19 @@ - ..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll + $(SolutionDir)packages\NUnit.3.0.1\lib\net45\nunit.framework.dll True - - - - - - + - -