Skip to content

Commit

Permalink
Merge pull request #7 from nunit/release-1.0
Browse files Browse the repository at this point in the history
Preparing for 1.0 release
  • Loading branch information
rprouse committed Dec 13, 2015
2 parents d087b3a + c64afc9 commit b829751
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 127 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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.
Expand All @@ -57,11 +64,11 @@ the NUnit project defaults in Visual Studio.

### Adding Project Templates

TBC
*TBC*

### Adding Item Templates

TBC
*TBC*

### Adding Code Snippets

Expand Down
9 changes: 1 addition & 8 deletions nunit.templates/Snippets/CSharp/Test/ntestcase.snippet
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,13 @@
</Function>
</Literal>
<Literal Editable="false">
<ID>TestxCase</ID>
<ID>TestCase</ID>
<ToolTip>
</ToolTip>
<Default>
</Default>
<Function>SimpleTypeName(global::NUnit.Framework.TestCase)</Function>
</Literal>
<Literal Editable="false">
<ID>TestCase</ID>
<ToolTip>TestCase</ToolTip>
<Default>TestCase</Default>
<Function>
</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$"><![CDATA[ [$TestCase$($params$)]
public void $name$($type$ $param$$end$)
Expand Down
2 changes: 1 addition & 1 deletion nunit.templates/Snippets/CSharp/Test/ntestfixture.snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<CodeSnippet Format="1.0.0">
<Header>
<Title>NUnit Test Class</Title>
<Shortcut>ntf</Shortcut>
<Shortcut>ntestfixture</Shortcut>
<Description>Code snippet for a test class</Description>
<Author>Rob Prouse</Author>
<SnippetTypes>
Expand Down
77 changes: 0 additions & 77 deletions nunit.templates/Snippets/CSharp/Test/testcase.snippet

This file was deleted.

4 changes: 4 additions & 0 deletions nunit.templates/nunit.templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
<None Include="Properties\template-builder.props">
<SubType>Designer</SubType>
</None>
<Content Include="preview.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="snippets.pkgdef">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
Expand Down
Binary file added nunit.templates/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 22 additions & 19 deletions nunit.templates/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="nunit.templates.Rob Prouse.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef" Version="1.0" Language="en-US" Publisher="Rob Prouse" />
<DisplayName>NUnit Templates for Visual Studio</DisplayName>
<Description xml:space="preserve">Provides Visual Studio project and item templates for NUnit 3 along with code snippets.</Description>
<MoreInfo>http://nunit.org</MoreInfo>
<License>license.rtf</License>
<Icon>nunit3_32x32.png</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[11.0,14.0]" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.ItemTemplate" Path="Output\ItemTemplates" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" Path="Output\ProjectTemplates" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="snippets.pkgdef" />
</Assets>
<Metadata>
<Identity Id="nunit.templates.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef" Version="1.0" Language="en-US" Publisher="Rob Prouse" />
<DisplayName>NUnit Templates for Visual Studio</DisplayName>
<Description xml:space="preserve">Provides Visual Studio project and item templates for NUnit 3 along with code snippets.</Description>
<MoreInfo>https://github.com/nunit/nunit.templates</MoreInfo>
<License>license.rtf</License>
<Icon>nunit3_32x32.png</Icon>
<PreviewImage>preview.png</PreviewImage>
<Tags>tdd, test, NUnit, NUnit3, template, snippet</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[12.0,]" />
<InstallationTarget Version="[11.0,)" Id="Microsoft.VisualStudio.Pro" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.0,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.ItemTemplate" Path="Output\ItemTemplates" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" Path="Output\ProjectTemplates" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="snippets.pkgdef" />
</Assets>
</PackageManifest>
9 changes: 1 addition & 8 deletions nunit.tests.csharp/nunit.tests.csharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=3.0.5813.39031, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath>
<HintPath>$(SolutionDir)packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="TestClass.cs" />
Expand Down
11 changes: 2 additions & 9 deletions nunit.tests.vb/nunit.tests.vb.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,19 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=3.0.5813.39031, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath>
<HintPath>$(SolutionDir)packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="NUnit.Framework" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Import Include="System.Linq" />
<Import Include="System.Xml.Linq" />
<Import Include="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit b829751

Please sign in to comment.