Merge pull request #47 from nunit/VS2019

Updates to work with VS2019
This commit is contained in:
Terje Sandstrom 2019-03-05 20:32:04 +01:00 коммит произвёл GitHub
Родитель 29c5931633 3285b20386
Коммит 92047675ab
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
29 изменённых файлов: 123 добавлений и 306 удалений

Просмотреть файл

@ -5,6 +5,10 @@ root = true
indent_style = space
indent_size = 4
[*.{csproj,vsixmanifest,vstemplate,snippet}]
[*.{csproj,vstemplate,snippet}]
indent_style = space
indent_size = 2
[*.{vsixmanifest}]
indent_style = space
indent_size = 4

Просмотреть файл

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.28307.421
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit.templates", "nunit.templates\nunit.templates.csproj", "{0660DC45-821A-4763-9818-4D6798A3A253}"
EndProject
@ -15,10 +15,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Rebracer.xml = Rebracer.xml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit.tests.csharp", "nunit.tests.csharp\nunit.tests.csharp.csproj", "{8EDF4429-251A-416D-BB68-93F227191BCF}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "nunit.tests.vb", "nunit.tests.vb\nunit.tests.vb.vbproj", "{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "xamarin", "xamarin", "{B5138D8C-725E-425D-ADCF-C298F6B88F95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit.tests.Droid", "xamarin\nunit.tests.Droid\nunit.tests.Droid.csproj", "{AD7B78B0-AE51-4FB7-9B11-4E22A2B538CA}"
@ -103,54 +99,6 @@ Global
{0660DC45-821A-4763-9818-4D6798A3A253}.Release|x64.Build.0 = Release|Any CPU
{0660DC45-821A-4763-9818-4D6798A3A253}.Release|x86.ActiveCfg = Release|Any CPU
{0660DC45-821A-4763-9818-4D6798A3A253}.Release|x86.Build.0 = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.AppStore|ARM.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.AppStore|x64.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.AppStore|x86.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Debug|ARM.ActiveCfg = Debug|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Debug|x64.ActiveCfg = Debug|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Debug|x86.ActiveCfg = Debug|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Release|ARM.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Release|iPhone.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Release|x64.ActiveCfg = Release|Any CPU
{8EDF4429-251A-416D-BB68-93F227191BCF}.Release|x86.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.AppStore|ARM.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.AppStore|x64.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.AppStore|x86.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Debug|ARM.ActiveCfg = Debug|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Debug|x64.ActiveCfg = Debug|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Debug|x86.ActiveCfg = Debug|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Release|ARM.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Release|iPhone.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Release|x64.ActiveCfg = Release|Any CPU
{6B1D4E4F-82C6-4A3F-95C6-EA1EE2C0C3CB}.Release|x86.ActiveCfg = Release|Any CPU
{AD7B78B0-AE51-4FB7-9B11-4E22A2B538CA}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{AD7B78B0-AE51-4FB7-9B11-4E22A2B538CA}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{AD7B78B0-AE51-4FB7-9B11-4E22A2B538CA}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
@ -232,4 +180,7 @@ Global
{D2CED8F0-7A76-454D-B5F7-9E8B9FE6A58E} = {B5138D8C-725E-425D-ADCF-C298F6B88F95}
{159A55AF-9531-4107-8444-CA9C96107EF5} = {B5138D8C-725E-425D-ADCF-C298F6B88F95}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {722CB21C-51BA-49C2-B37C-7A6E5785EA40}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,19 +0,0 @@
<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</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>

Просмотреть файл

@ -1,19 +0,0 @@
<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</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>

Просмотреть файл

@ -1,23 +0,0 @@
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
}
}
}

Просмотреть файл

@ -1,25 +0,0 @@
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

Просмотреть файл

@ -1,19 +0,0 @@
<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</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>

Просмотреть файл

@ -1,19 +0,0 @@
<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</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>

Просмотреть файл

@ -1,20 +0,0 @@
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace $rootnamespace$
{
[TestFixture]
public class $safeitemname$
{
[Test]
public void TestMethod()
{
// TODO: Add your test code here
Assert.Pass("Your first passing test");
}
}
}

Просмотреть файл

@ -1,19 +0,0 @@
Option Explicit On
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

Двоичные данные
nunit.templates/Packages/NUnit.3.6.1.nupkg

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>NUnit SetUp Method</Title>
<Author>Terje Sandstrom</Author>
<Description>Code snippet for a setup method</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>nsetup</Shortcut>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>NUnit.Framework</Namespace>
</Import>
</Imports>
<References>
<Reference>
<Assembly>nunit.framework.dll</Assembly>
</Reference>
</References>
<Declarations>
<Literal Editable="true">
<ID>name</ID>
<ToolTip>Replace with the name of the setup method</ToolTip>
<Default>TestSetUp</Default>
<Function>
</Function>
</Literal>
<Literal Editable="false">
<ID>SetUp</ID>
<ToolTip>
</ToolTip>
<Default>
</Default>
<Function>SimpleTypeName(global::NUnit.Framework.Test)</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$">
<![CDATA[ [$SetUp$]
public void $name$()
{
// Add code that runs before each test method
$end$
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>

Просмотреть файл

@ -40,9 +40,12 @@
<Function>SimpleTypeName(global::NUnit.Framework.Test)</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$"><![CDATA[ [$Test$]
<Code Language="csharp" Delimiter="$">
<![CDATA[ [$Test$]
public void $name$()
{
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
$end$
}]]></Code>
</Snippet>

Просмотреть файл

@ -61,9 +61,12 @@
<Function>SimpleTypeName(global::NUnit.Framework.TestCase)</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$"><![CDATA[ [$TestCase$($params$)]
<Code Language="csharp" Delimiter="$">
<![CDATA[ [$TestCase$($params$)]
public void $name$($type$ $param$$end$)
{
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
}]]></Code>
</Snippet>
</CodeSnippet>

Просмотреть файл

@ -41,12 +41,15 @@
<Function>SimpleTypeName(global::NUnit.Framework.Test)</Function>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[[$TestFixture$]
<Code Language="csharp">
<![CDATA[[$TestFixture$]
public class $cname$Test
{
[$Test$]
public void $tname$()
{
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
$end$
}
}]]></Code>

Просмотреть файл

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.props" Condition="Exists('..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.props')" />
<Import Project="..\packages\NUnit3TestAdapter.3.13.0\build\net35\NUnit3TestAdapter.props" Condition="Exists('..\packages\NUnit3TestAdapter.3.13.0\build\net35\NUnit3TestAdapter.props')" />
<Import Project="..\packages\NUnit.3.11.0\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" />
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.props')" />
<PropertyGroup>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
@ -66,28 +68,15 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DeployExtension>False</DeployExtension>
</PropertyGroup>
<PropertyGroup Label="TemplateBuilder">
<TemplateBuilderTargets Condition=" '$(TemplateBuilderTargets)'=='' ">$([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\..\packages\TemplateBuilder.1.1.3\tools\ligershark.templates.targets ))</TemplateBuilderTargets>
<TemplateBuilderTargets Condition=" '$(TemplateBuilderTargets)'=='' ">$([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\..\packages\TemplateBuilder.1.1.6.1\tools\ligershark.templates.targets ))</TemplateBuilderTargets>
</PropertyGroup>
<ItemGroup>
<Content Include="ItemTemplates\Test\NUnit Setup Fixture\icon.png" />
<Content Include="ItemTemplates\Test\NUnit Setup Fixture\SetupFixture.vb" />
<Content Include="ItemTemplates\Test\NUnit Test Fixture\TestClass.cs" />
<Content Include="ItemTemplates\Test\NUnit Setup Fixture\SetupFixture.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="ItemTemplates\Test\NUnit Test Fixture\icon.png" />
<Content Include="ItemTemplates\Test\NUnit Test Fixture\TestClass.vb" />
<Content Include="ItemTemplates\Test\NUnit Test Fixture\Definitions\CSharp.vstemplate">
<SubType>Designer</SubType>
</Content>
<Content Include="ItemTemplates\Test\NUnit Test Fixture\Definitions\VB.vstemplate">
<SubType>Designer</SubType>
</Content>
<Content Include="ItemTemplates\Test\NUnit Setup Fixture\Definitions\CSharp.vstemplate" />
<Content Include="ItemTemplates\Test\NUnit Setup Fixture\Definitions\VB.vstemplate" />
<Content Include="nunit_90.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
@ -96,11 +85,9 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<None Include="packages.config" />
<Content Include="Packages\NUnit.3.6.1.nupkg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
<Content Include="Packages\pclstorage.1.0.2.nupkg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
@ -143,6 +130,9 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<None Include="Snippets\CSharp\NUnit\nsetup.snippet">
<SubType>Designer</SubType>
</None>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
@ -152,9 +142,12 @@
<Content Include="stylesheet.css" />
</ItemGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="TemplateBuilder, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\TemplateBuilder.1.1.3\lib\TemplateBuilder.dll</HintPath>
<Reference Include="TemplateBuilder, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\TemplateBuilder.1.1.6.1\lib\TemplateBuilder.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
@ -193,10 +186,12 @@
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.targets'))" />
<Error Condition="!Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.11.0\build\NUnit.props'))" />
<Error Condition="!Exists('..\packages\NUnit3TestAdapter.3.13.0\build\net35\NUnit3TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit3TestAdapter.3.13.0\build\net35\NUnit3TestAdapter.props'))" />
</Target>
<Import Project="..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.targets" Condition="Exists('..\packages\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.14.0.23-pre\build\Microsoft.VisualStudio.Sdk.BuildTasks.14.0.targets')" />
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.15.9.3039\build\Microsoft.VSSDK.BuildTools.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

Просмотреть файл

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudio.Sdk.BuildTasks.14.0" version="14.0.23-pre" targetFramework="net45" developmentDependency="true" />
<package id="TemplateBuilder" version="1.1.3" targetFramework="net45" />
<package id="Microsoft.VSSDK.BuildTools" version="15.9.3039" targetFramework="net45" developmentDependency="true" />
<package id="NUnit" version="3.11.0" targetFramework="net45" />
<package id="NUnit3TestAdapter" version="3.13.0" targetFramework="net45" />
<package id="TemplateBuilder" version="1.1.6.1" targetFramework="net45" />
</packages>

Просмотреть файл

@ -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.3" Language="en-US" Publisher="Rob Prouse" />
<Identity Id="nunit.templates.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef" Version="1.5" 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>
@ -22,7 +22,8 @@
<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" />
<Asset Type="nunit.3.6.1.nupkg" d:Source="File" Path="Packages\NUnit.3.6.1.nupkg" d:VsixSubPath="Packages" />
<Asset Type="nunit.3.11.0.nupkg" d:Source="File" Path="Packages\NUnit.3.11.0\NUnit.3.11.0.nupkg" d:VsixSubPath="Packages" />
<Asset Type="nunit3testadapter.3.13.0.nupkg" d:Source="File" Path="Packages\nunit3testadapter.3.13.0\NUnit.3.13.0.nupkg" d:VsixSubPath="Packages" />
<Asset Type="pclstorage.1.0.2.nupkg" d:Source="File" Path="Packages\pclstorage.1.0.2.nupkg" d:VsixSubPath="Packages" />
<Asset Type="xamarin.forms.1.5.0.6447.nupkg" d:Source="File" Path="Packages\xamarin.forms.1.5.0.6447.nupkg" d:VsixSubPath="Packages" />
<Asset Type="xamarin.android.support.v4.22.2.1.nupkg" d:Source="File" Path="Packages\xamarin.android.support.v4.22.2.1.nupkg" d:VsixSubPath="Packages" />

Просмотреть файл

@ -1,33 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NUnit.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("nunit.tests")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Просмотреть файл

@ -1,20 +1,18 @@
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// NUnit 3 tests
// See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
using NUnit.Framework;
namespace NUnit.Tests
namespace $safeprojectname$
{
[TestFixture]
public class TestClass
public class $safeitemname$
{
[Test]
public void TestMethod()
{
// TODO: Add your test code here
Assert.Pass("Your first passing test");
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
}
}
}

Просмотреть файл

@ -1,7 +1,7 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>NUnit 3 Unit Test Project</Name>
<Description>A project that contains NUnit 3 unit tests</Description>
<Description>A project that contains NUnit 3 unit tests (C#)</Description>
<DefaultName>NUnit.Tests</DefaultName>
<ProjectType>CSharp</ProjectType>
<ProjectSubType></ProjectSubType>
@ -26,7 +26,8 @@
</WizardExtension>
<WizardData>
<packages repository="extension" repositoryId="nunit.templates.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef">
<package id="NUnit" version="3.6.1" />
<package id="NUnit" version="3.11.0" />
<package id="NUnit3TestAdapter" version="3.13.0" />
</packages>
</WizardData>
</VSTemplate>

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="16.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -34,7 +34,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="TestClass.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

Просмотреть файл

@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("nunit.tests.vb")>
<Assembly: AssemblyCopyright("Copyright © 2017")>
<Assembly: AssemblyCopyright("Copyright © 2019")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>

Просмотреть файл

@ -1,12 +1,13 @@
Option Explicit On
' NUnit 3 tests
' See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
Imports System
Imports NUnit.Framework
Namespace NUnit.Tests
Namespace $safeprojectname$
<TestFixture>
Public Class TestClass
Public Class $safeitemname$
<Test>
Public Sub TestMethod()

Просмотреть файл

@ -1,7 +1,7 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>NUnit 3 Unit Test Project</Name>
<Description>A project that contains NUnit 3 unit tests</Description>
<Description>A project that contains NUnit 3 unit tests (VB)</Description>
<DefaultName>NUnit.Tests</DefaultName>
<ProjectType>VisualBasic</ProjectType>
<ProjectSubType></ProjectSubType>
@ -26,7 +26,8 @@
</WizardExtension>
<WizardData>
<packages repository="extension" repositoryId="nunit.templates.b29e95b8-bf26-4f03-983d-f1d0f21ad6ef">
<package id="NUnit" version="3.6.1" />
<package id="NUnit" version="3.11.0" />
<package id="NUnit3TestAdapter" version="3.13.0" />
</packages>
</WizardData>
</VSTemplate>

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" />
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application></application>
</manifest>

Просмотреть файл

@ -14,7 +14,6 @@
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
<AndroidSupportedAbis>armeabi,armeabi-v7a,x86</AndroidSupportedAbis>
<AndroidStoreUncompressedFileExtensions />
<MandroidI18n />
@ -24,7 +23,7 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
<TargetFrameworkVersion>v6.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>