From c38d4270094ead5d212763d081ad3b8ade433c7d Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Sun, 2 Oct 2016 10:12:27 -0400 Subject: [PATCH] Create Tests project (xunit) --- Podsync.sln | 9 ++++++ test/Podsync.Tests/Class1.cs | 28 +++++++++++++++++++ test/Podsync.Tests/Podsync.Tests.xproj | 22 +++++++++++++++ test/Podsync.Tests/Properties/AssemblyInfo.cs | 19 +++++++++++++ test/Podsync.Tests/project.json | 22 +++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 test/Podsync.Tests/Class1.cs create mode 100644 test/Podsync.Tests/Podsync.Tests.xproj create mode 100644 test/Podsync.Tests/Properties/AssemblyInfo.cs create mode 100644 test/Podsync.Tests/project.json diff --git a/Podsync.sln b/Podsync.sln index dcda361..a16d4e9 100644 --- a/Podsync.sln +++ b/Podsync.sln @@ -12,6 +12,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Podsync", "src\Podsync\Podsync.xproj", "{C9283472-E95E-4517-AE3B-3E276B9851E4}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D94416F2-31EA-4D38-A3D0-BB74180687D4}" +EndProject +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Podsync.Tests", "test\Podsync.Tests\Podsync.Tests.xproj", "{990B29B3-C581-4D60-A34B-36499E2849BA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -22,11 +26,16 @@ Global {C9283472-E95E-4517-AE3B-3E276B9851E4}.Debug|Any CPU.Build.0 = Debug|Any CPU {C9283472-E95E-4517-AE3B-3E276B9851E4}.Release|Any CPU.ActiveCfg = Release|Any CPU {C9283472-E95E-4517-AE3B-3E276B9851E4}.Release|Any CPU.Build.0 = Release|Any CPU + {990B29B3-C581-4D60-A34B-36499E2849BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {990B29B3-C581-4D60-A34B-36499E2849BA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {990B29B3-C581-4D60-A34B-36499E2849BA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {990B29B3-C581-4D60-A34B-36499E2849BA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {C9283472-E95E-4517-AE3B-3E276B9851E4} = {3EF2294C-C807-46F3-B3F4-98B7F30688D0} + {990B29B3-C581-4D60-A34B-36499E2849BA} = {D94416F2-31EA-4D38-A3D0-BB74180687D4} EndGlobalSection EndGlobal diff --git a/test/Podsync.Tests/Class1.cs b/test/Podsync.Tests/Class1.cs new file mode 100644 index 0000000..7873664 --- /dev/null +++ b/test/Podsync.Tests/Class1.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using NuGet.Packaging; +using Xunit; + +namespace Podsync.Tests +{ + public class Class1 + { + public Class1() + { + } + + [Fact] + public void PassingTest() + { + Assert.True(true); + } + + [Fact] + public void FailingTest() + { + Assert.False(true); + } + } +} diff --git a/test/Podsync.Tests/Podsync.Tests.xproj b/test/Podsync.Tests/Podsync.Tests.xproj new file mode 100644 index 0000000..a3b0907 --- /dev/null +++ b/test/Podsync.Tests/Podsync.Tests.xproj @@ -0,0 +1,22 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + 990b29b3-c581-4d60-a34b-36499e2849ba + Podsync.Tests + .\obj + .\bin\ + v4.6.1 + + + 2.0 + + + + + + \ No newline at end of file diff --git a/test/Podsync.Tests/Properties/AssemblyInfo.cs b/test/Podsync.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c1f00f0 --- /dev/null +++ b/test/Podsync.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,19 @@ +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: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Podsync.Tests")] +[assembly: AssemblyTrademark("")] + +// 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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("990b29b3-c581-4d60-a34b-36499e2849ba")] diff --git a/test/Podsync.Tests/project.json b/test/Podsync.Tests/project.json new file mode 100644 index 0000000..cae1a23 --- /dev/null +++ b/test/Podsync.Tests/project.json @@ -0,0 +1,22 @@ +{ + "version": "1.0.0-*", + "testRunner": "xunit", + + "dependencies": { + "dotnet-test-xunit": "2.2.0-preview2-build1029", + "Microsoft.NETCore.App": { + "version": "1.0.0", + "type": "platform" + }, + "xunit": "2.2.0-beta2-build3300" + }, + + "frameworks": { + "netcoreapp1.0": { + "imports": [ + "dotnet5.6", + "portable-net45+win8" + ] + } + } +}