Added back ItemTemplates folder
This commit is contained in:
Родитель
97696c1756
Коммит
55b5dee940
|
@ -0,0 +1,19 @@
|
|||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
|
||||
<TemplateData>
|
||||
<ProjectType>CSharp</ProjectType>
|
||||
|
||||
<DefaultName>SetupFixture.cs</DefaultName>
|
||||
<Name>NUnit Setup Fixture</Name>
|
||||
<Description>A class that contains code that is run before and after all the tests in the assembly (C#)</Description>
|
||||
<Icon>icon.png</Icon>
|
||||
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
|
||||
<TemplateID>4dfb61f8-ba75-4bf1-9c96-e8dc06021b4c</TemplateID>
|
||||
<SortOrder>2100</SortOrder>
|
||||
</TemplateData>
|
||||
<TemplateContent>
|
||||
<References />
|
||||
|
||||
<ProjectItem ReplaceParameters="true">SetupFixture.cs</ProjectItem>
|
||||
|
||||
</TemplateContent>
|
||||
</VSTemplate>
|
|
@ -0,0 +1,19 @@
|
|||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
|
||||
<TemplateData>
|
||||
<ProjectType>VisualBasic</ProjectType>
|
||||
|
||||
<DefaultName>SetupFixture.vb</DefaultName>
|
||||
<Name>NUnit Setup Fixture</Name>
|
||||
<Description>A class that contains code that is run before and after all the tests in the assembly (VB)</Description>
|
||||
<Icon>icon.png</Icon>
|
||||
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
|
||||
<TemplateID>05535130-0825-46af-a629-6598251c35cc</TemplateID>
|
||||
<SortOrder>2100</SortOrder>
|
||||
</TemplateData>
|
||||
<TemplateContent>
|
||||
<References />
|
||||
|
||||
<ProjectItem ReplaceParameters="true">SetupFixture.vb</ProjectItem>
|
||||
|
||||
</TemplateContent>
|
||||
</VSTemplate>
|
|
@ -0,0 +1,23 @@
|
|||
using NUnit.Framework;
|
||||
using System;
|
||||
|
||||
namespace $rootnamespace$
|
||||
{
|
||||
[SetUpFixture]
|
||||
public class $safeitemname$
|
||||
{
|
||||
[OneTimeSetUp]
|
||||
public void OneTimeSetUp()
|
||||
{
|
||||
// TODO: Add code here that is run before
|
||||
// all tests in the assembly are run
|
||||
}
|
||||
|
||||
[OneTimeTearDown]
|
||||
public void OneTimeTearDown()
|
||||
{
|
||||
// TODO: Add code here that is run after
|
||||
// all tests in the assembly have been run
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
Option Explicit On
|
||||
|
||||
Imports System
|
||||
Imports NUnit.Framework
|
||||
|
||||
Namespace $rootnamespace$
|
||||
|
||||
<SetUpFixture>
|
||||
Public Class $safeitemname$
|
||||
|
||||
<OneTimeSetUp>
|
||||
Public Sub OneTimeSetUp()
|
||||
' TODO Add code here that is run before
|
||||
' all tests in the assembly are run
|
||||
End Sub
|
||||
|
||||
<OneTimeTearDown>
|
||||
Public Sub OneTimeTearDown()
|
||||
' TODO Add code here that is run after
|
||||
' all tests in the assembly have been run
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 2.9 KiB |
|
@ -0,0 +1,19 @@
|
|||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
|
||||
<TemplateData>
|
||||
<ProjectType>CSharp</ProjectType>
|
||||
|
||||
<DefaultName>TestClass.cs</DefaultName>
|
||||
<Name>NUnit Test Fixture</Name>
|
||||
<Description>A class that contains NUnit unit tests (C#) </Description>
|
||||
<Icon>icon.png</Icon>
|
||||
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
|
||||
<TemplateID>9936e07b-28c2-44ad-99da-d00b06c4e168</TemplateID>
|
||||
<SortOrder>2000</SortOrder>
|
||||
</TemplateData>
|
||||
<TemplateContent>
|
||||
<References />
|
||||
|
||||
<ProjectItem ReplaceParameters="true">TestClass.cs</ProjectItem>
|
||||
|
||||
</TemplateContent>
|
||||
</VSTemplate>
|
|
@ -0,0 +1,19 @@
|
|||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
|
||||
<TemplateData>
|
||||
<ProjectType>VisualBasic</ProjectType>
|
||||
|
||||
<DefaultName>TestClass.vb</DefaultName>
|
||||
<Name>NUnit Test Fixture</Name>
|
||||
<Description>A class that contains NUnit unit tests (VB)</Description>
|
||||
<Icon>icon.png</Icon>
|
||||
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
|
||||
<TemplateID>cb5f52ba-bd65-42e6-bbbf-f58c96cfd3c0</TemplateID>
|
||||
<SortOrder>2000</SortOrder>
|
||||
</TemplateData>
|
||||
<TemplateContent>
|
||||
<References />
|
||||
|
||||
<ProjectItem ReplaceParameters="true">TestClass.vb</ProjectItem>
|
||||
|
||||
</TemplateContent>
|
||||
</VSTemplate>
|
|
@ -0,0 +1,17 @@
|
|||
// NUnit3 Tests, see documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace $rootnamespace$
|
||||
{
|
||||
[TestFixture]
|
||||
public class $safeitemname$
|
||||
{
|
||||
[Test]
|
||||
public void TestMethod()
|
||||
{
|
||||
// TODO: Add your test code here
|
||||
var answer = 43;
|
||||
Assert.That(answer,Is.EqualTo(42),"Some useful error message");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
Option Explicit On
|
||||
' NUnit3 Tests, see documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
|
||||
Imports System
|
||||
Imports NUnit.Framework
|
||||
|
||||
Namespace $rootnamespace$
|
||||
|
||||
<TestFixture>
|
||||
Public Class $safeitemname$
|
||||
|
||||
<Test>
|
||||
Public Sub TestMethod()
|
||||
' TODO Add your test code here
|
||||
Assert.Pass("Your first passing test")
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 2.9 KiB |
|
@ -1,7 +1,7 @@
|
|||
<?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.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef" Version="1.4.7" Language="en-US" Publisher="Rob Prouse" />
|
||||
<Identity Id="nunit.templates.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef" Version="1.4.8" Language="en-US" Publisher="Rob Prouse" />
|
||||
<DisplayName>NUnit VS Templates</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-vs-templates</MoreInfo>
|
||||
|
|
Загрузка…
Ссылка в новой задаче