From 8a60a887defa2ab73aca340ff6c24cad3fccb9d5 Mon Sep 17 00:00:00 2001 From: Kallyn Gowdy Date: Thu, 22 Sep 2016 14:24:18 -0400 Subject: [PATCH 1/2] Created unit test project --- src/StudentDataViewer.Tests/Class1.cs | 12 ++++ .../Properties/AssemblyInfo.cs | 36 +++++++++++ .../StudentDataViewer.Tests.csproj | 61 +++++++++++++++++++ src/StudentDataViewer.sln | 6 ++ 4 files changed, 115 insertions(+) create mode 100644 src/StudentDataViewer.Tests/Class1.cs create mode 100644 src/StudentDataViewer.Tests/Properties/AssemblyInfo.cs create mode 100644 src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj diff --git a/src/StudentDataViewer.Tests/Class1.cs b/src/StudentDataViewer.Tests/Class1.cs new file mode 100644 index 0000000..fd3b982 --- /dev/null +++ b/src/StudentDataViewer.Tests/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentDataViewer.Tests +{ + public class Class1 + { + } +} diff --git a/src/StudentDataViewer.Tests/Properties/AssemblyInfo.cs b/src/StudentDataViewer.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..15f437c --- /dev/null +++ b/src/StudentDataViewer.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +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("StudentDataViewer.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StudentDataViewer.Tests")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d28e96c4-cdbb-434f-b189-4982389304cf")] + +// 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")] diff --git a/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj b/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj new file mode 100644 index 0000000..b9ccda8 --- /dev/null +++ b/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + d28e96c4-cdbb-434f-b189-4982389304cf + Library + Properties + StudentDataViewer.Tests + StudentDataViewer.Tests + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/StudentDataViewer.sln b/src/StudentDataViewer.sln index 4437193..04b629c 100644 --- a/src/StudentDataViewer.sln +++ b/src/StudentDataViewer.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentDataViewer", "StudentDataViewer\StudentDataViewer.csproj", "{1BAFC480-6623-4A9A-86BA-662FEC0EBD6F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentDataViewer.Tests", "StudentDataViewer.Tests\StudentDataViewer.Tests.csproj", "{D28E96C4-CDBB-434F-B189-4982389304CF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {1BAFC480-6623-4A9A-86BA-662FEC0EBD6F}.Debug|Any CPU.Build.0 = Debug|Any CPU {1BAFC480-6623-4A9A-86BA-662FEC0EBD6F}.Release|Any CPU.ActiveCfg = Release|Any CPU {1BAFC480-6623-4A9A-86BA-662FEC0EBD6F}.Release|Any CPU.Build.0 = Release|Any CPU + {D28E96C4-CDBB-434F-B189-4982389304CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D28E96C4-CDBB-434F-B189-4982389304CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D28E96C4-CDBB-434F-B189-4982389304CF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D28E96C4-CDBB-434F-B189-4982389304CF}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From e7d3eb4079757215f77ae8cfb6f5d1be50bfa623 Mon Sep 17 00:00:00 2001 From: Kallyn Gowdy Date: Thu, 22 Sep 2016 15:18:49 -0400 Subject: [PATCH 2/2] Add NuGet Packages for xUnit --- src/StudentDataViewer.Tests/Class1.cs | 12 ---- .../StudentDataViewer.Tests.csproj | 58 +++++++++++++------ src/StudentDataViewer.Tests/packages.config | 10 ++++ 3 files changed, 49 insertions(+), 31 deletions(-) delete mode 100644 src/StudentDataViewer.Tests/Class1.cs create mode 100644 src/StudentDataViewer.Tests/packages.config diff --git a/src/StudentDataViewer.Tests/Class1.cs b/src/StudentDataViewer.Tests/Class1.cs deleted file mode 100644 index fd3b982..0000000 --- a/src/StudentDataViewer.Tests/Class1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentDataViewer.Tests -{ - public class Class1 - { - } -} diff --git a/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj b/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj index b9ccda8..5cfa07d 100644 --- a/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj +++ b/src/StudentDataViewer.Tests/StudentDataViewer.Tests.csproj @@ -1,16 +1,19 @@ - + + Debug AnyCPU - d28e96c4-cdbb-434f-b189-4982389304cf + {D28E96C4-CDBB-434F-B189-4982389304CF} Library Properties StudentDataViewer.Tests StudentDataViewer.Tests v4.5.2 512 + + true @@ -30,26 +33,44 @@ 4 - - - - - - - - - - - - - - + + + + + + + + + + ..\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 + - + + + + + + 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}. + + + - - + \ No newline at end of file diff --git a/src/StudentDataViewer.Tests/packages.config b/src/StudentDataViewer.Tests/packages.config new file mode 100644 index 0000000..64fb5d7 --- /dev/null +++ b/src/StudentDataViewer.Tests/packages.config @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file