From 18ecec5d46e35bd350298bc9cd614e2fcbc688fd Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Sun, 5 Jun 2016 20:03:11 +0200 Subject: [PATCH] Move HtmlSanitizer.Tests to project.json --- .gitignore | 4 ++- .../HtmlSanitizer.Tests.csproj | 25 +---------------- .../HtmlSanitizer.Tests.project.json | 12 ++++++++ HtmlSanitizer.Tests/Tests.cs | 1 - HtmlSanitizer.Tests/packages.config | 12 -------- HtmlSanitizer.Tests/project.json | 28 +++++++++++++++++++ global.json | 6 ++++ 7 files changed, 50 insertions(+), 38 deletions(-) create mode 100644 HtmlSanitizer.Tests/HtmlSanitizer.Tests.project.json delete mode 100644 HtmlSanitizer.Tests/packages.config create mode 100644 HtmlSanitizer.Tests/project.json create mode 100644 global.json diff --git a/.gitignore b/.gitignore index 95eee75..0dd791e 100644 --- a/.gitignore +++ b/.gitignore @@ -159,4 +159,6 @@ coverity.zip .vs/ # dotnet -*.lock.json \ No newline at end of file +*.lock.json +*.nuget.props +*.nuget.targets diff --git a/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj b/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj index 3551d8d..187159d 100644 --- a/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj +++ b/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj @@ -1,5 +1,5 @@  - + Debug @@ -44,28 +44,8 @@ ..\packages\AngleSharp.0.9.6\lib\net45\AngleSharp.dll True - - ..\packages\NUnit.3.2.1\lib\net45\nunit.framework.dll - True - - - ..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll - True - - - ..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll - True - - - ..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll - True - - - ..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll - True - @@ -85,9 +65,6 @@ HtmlSanitizer - - - diff --git a/HtmlSanitizer.Tests/HtmlSanitizer.Tests.project.json b/HtmlSanitizer.Tests/HtmlSanitizer.Tests.project.json new file mode 100644 index 0000000..4354238 --- /dev/null +++ b/HtmlSanitizer.Tests/HtmlSanitizer.Tests.project.json @@ -0,0 +1,12 @@ +{ + "dependencies": { + "xunit": "2.1.0", + "xunit.runner.visualstudio": "2.1.0" + }, + "frameworks": { + "net45": { } + }, + "runtimes": { + "win": { } + } +} diff --git a/HtmlSanitizer.Tests/Tests.cs b/HtmlSanitizer.Tests/Tests.cs index e2942de..445809b 100644 --- a/HtmlSanitizer.Tests/Tests.cs +++ b/HtmlSanitizer.Tests/Tests.cs @@ -5,7 +5,6 @@ using Xunit; using System; using System.Collections.Generic; using System.Linq; -using System.Runtime.Remoting.Channels; using System.Text.RegularExpressions; // Tests based on tests from http://roadkill.codeplex.com/ diff --git a/HtmlSanitizer.Tests/packages.config b/HtmlSanitizer.Tests/packages.config deleted file mode 100644 index 19fb545..0000000 --- a/HtmlSanitizer.Tests/packages.config +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/HtmlSanitizer.Tests/project.json b/HtmlSanitizer.Tests/project.json new file mode 100644 index 0000000..7a89a78 --- /dev/null +++ b/HtmlSanitizer.Tests/project.json @@ -0,0 +1,28 @@ +{ + "version": "1.0.0-*", + "testRunner": "xunit", + "dependencies": { + "HtmlSanitizer": "1.0.0-VERSION", + "xunit": "2.1.0", + "dotnet-test-xunit": "1.0.0-rc2-build10025" + }, + "frameworks": { + "netcoreapp1.0": { + "dependencies": { + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.0.0-rc2-3002702" + } + }, + "imports": [ + "dnxcore50", + "portable-net45+win8" + ] + }, + "net451": { + "dependencies": { + "xunit.runner.visualstudio": "2.1.0" + } + } + } +} diff --git a/global.json b/global.json new file mode 100644 index 0000000..4c3d132 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "projects": [ "HtmlSanitizer", "HtmlSanitizer.Tests" ], + "sdk": { + "version": "1.0.0-preview1-002702" + } +}