From 78a0b1460c8747632e36468b43bf8f5ca74383aa Mon Sep 17 00:00:00 2001 From: Bryant Nelson Date: Wed, 17 Jan 2018 11:26:19 -0600 Subject: [PATCH] #13 Updating test solution and adding utilities test. --- TimeKeeper.sln | 17 ++++--- TimeKeeper/Utilities.cs | 2 +- TimeKeeperTests/Properties/AssemblyInfo.cs | 6 +-- TimeKeeperTests/SettingsTests.cs | 2 +- TimeKeeperTests/TimeKeeperTests.csproj | 34 +++++++++---- TimeKeeperTests/UtilitiesTests.cs | 56 ++++++++++++++++++++++ TimeKeeperTests/app.config | 11 ----- TimeKeeperTests/packages.config | 5 ++ 8 files changed, 100 insertions(+), 33 deletions(-) create mode 100644 TimeKeeperTests/UtilitiesTests.cs delete mode 100644 TimeKeeperTests/app.config create mode 100644 TimeKeeperTests/packages.config diff --git a/TimeKeeper.sln b/TimeKeeper.sln index 52a1f5e..7d927cd 100644 --- a/TimeKeeper.sln +++ b/TimeKeeper.sln @@ -1,11 +1,11 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.27130.2010 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeKeeper", "TimeKeeper\TimeKeeper.csproj", "{6D4052C6-7C14-419F-9CDC-EBA6478FDE0F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeKeeperTests", "TimeKeeperTests\TimeKeeperTests.csproj", "{521C6DBE-C367-4D18-8D73-06ECF00DB14D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeKeeperTests", "TimeKeeperTests\TimeKeeperTests.csproj", "{531979F1-C99A-4CB1-B035-BBFA9BBC756F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -17,12 +17,15 @@ Global {6D4052C6-7C14-419F-9CDC-EBA6478FDE0F}.Debug|Any CPU.Build.0 = Debug|Any CPU {6D4052C6-7C14-419F-9CDC-EBA6478FDE0F}.Release|Any CPU.ActiveCfg = Release|Any CPU {6D4052C6-7C14-419F-9CDC-EBA6478FDE0F}.Release|Any CPU.Build.0 = Release|Any CPU - {521C6DBE-C367-4D18-8D73-06ECF00DB14D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {521C6DBE-C367-4D18-8D73-06ECF00DB14D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {521C6DBE-C367-4D18-8D73-06ECF00DB14D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {521C6DBE-C367-4D18-8D73-06ECF00DB14D}.Release|Any CPU.Build.0 = Release|Any CPU + {531979F1-C99A-4CB1-B035-BBFA9BBC756F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {531979F1-C99A-4CB1-B035-BBFA9BBC756F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {531979F1-C99A-4CB1-B035-BBFA9BBC756F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {531979F1-C99A-4CB1-B035-BBFA9BBC756F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6A111079-99AB-4391-BA66-DA12A787B1E8} + EndGlobalSection EndGlobal diff --git a/TimeKeeper/Utilities.cs b/TimeKeeper/Utilities.cs index fdedd4f..79cf753 100644 --- a/TimeKeeper/Utilities.cs +++ b/TimeKeeper/Utilities.cs @@ -9,7 +9,7 @@ namespace TimeKeeper { - class Utilities + public class Utilities { private static RegistryKey baseRegistryKey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Default); private static string subKey = "SOFTWARE\\bethune-bryant\\Timekeeper"; diff --git a/TimeKeeperTests/Properties/AssemblyInfo.cs b/TimeKeeperTests/Properties/AssemblyInfo.cs index 852bbaf..1374df8 100644 --- a/TimeKeeperTests/Properties/AssemblyInfo.cs +++ b/TimeKeeperTests/Properties/AssemblyInfo.cs @@ -8,9 +8,9 @@ [assembly: AssemblyTitle("TimeKeeperTests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Hewlett-Packard Company")] +[assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TimeKeeperTests")] -[assembly: AssemblyCopyright("Copyright © Hewlett-Packard Company 2017")] +[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -20,7 +20,7 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("521c6dbe-c367-4d18-8d73-06ecf00db14d")] +[assembly: Guid("531979f1-c99a-4cb1-b035-bbfa9bbc756f")] // Version information for an assembly consists of the following four values: // diff --git a/TimeKeeperTests/SettingsTests.cs b/TimeKeeperTests/SettingsTests.cs index e56cf15..c23eae6 100644 --- a/TimeKeeperTests/SettingsTests.cs +++ b/TimeKeeperTests/SettingsTests.cs @@ -42,7 +42,7 @@ public void SettingsTest() Assert.AreEqual(0, test.TimeEntries.Count); Assert.AreEqual(15, test.StillWorkingTime); } - + [TestMethod()] public void LastUnclosedTaskTest() { diff --git a/TimeKeeperTests/TimeKeeperTests.csproj b/TimeKeeperTests/TimeKeeperTests.csproj index 4cfd31f..9ef1343 100644 --- a/TimeKeeperTests/TimeKeeperTests.csproj +++ b/TimeKeeperTests/TimeKeeperTests.csproj @@ -1,9 +1,10 @@  - + + Debug AnyCPU - {521C6DBE-C367-4D18-8D73-06ECF00DB14D} + {531979F1-C99A-4CB1-B035-BBFA9BBC756F} Library Properties TimeKeeperTests @@ -16,6 +17,8 @@ $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages False UnitTest + + true @@ -35,6 +38,12 @@ 4 + + ..\packages\MSTest.TestFramework.1.2.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.1.2.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + @@ -43,15 +52,15 @@ - - - - - + + + + + @@ -59,9 +68,6 @@ TimeKeeper - - - @@ -82,6 +88,14 @@ + + + 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}. + + + + +