diff --git a/CharacterRecordsGenerator.sln b/CharacterRecordsGenerator.sln index cc2f943..6217f77 100644 --- a/CharacterRecordsGenerator.sln +++ b/CharacterRecordsGenerator.sln @@ -5,6 +5,11 @@ VisualStudioVersion = 16.0.31702.278 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CharacterRecordsGenerator", "CharacterRecordsGenerator\CharacterRecordsGenerator.csproj", "{2E1295C2-7BD9-454E-B13E-8A22448DD5F6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CharacterRecordsGenerator.Tests", "CharacterRecordsGeneratorTests\CharacterRecordsGenerator.Tests.csproj", "{195A07A8-03F7-4A1F-932F-73F934EF324F}" + ProjectSection(ProjectDependencies) = postProject + {2E1295C2-7BD9-454E-B13E-8A22448DD5F6} = {2E1295C2-7BD9-454E-B13E-8A22448DD5F6} + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -27,6 +32,18 @@ Global {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Release|x64.Build.0 = Release|x64 {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Release|x86.ActiveCfg = Release|x86 {2E1295C2-7BD9-454E-B13E-8A22448DD5F6}.Release|x86.Build.0 = Release|x86 + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Debug|x64.ActiveCfg = Debug|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Debug|x64.Build.0 = Debug|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Debug|x86.ActiveCfg = Debug|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Debug|x86.Build.0 = Debug|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Release|Any CPU.Build.0 = Release|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Release|x64.ActiveCfg = Release|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Release|x64.Build.0 = Release|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Release|x86.ActiveCfg = Release|Any CPU + {195A07A8-03F7-4A1F-932F-73F934EF324F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CharacterRecordsGenerator/CharacterRecordsGenerator.csproj b/CharacterRecordsGenerator/CharacterRecordsGenerator.csproj index 64e5d4a..6d9d674 100644 --- a/CharacterRecordsGenerator/CharacterRecordsGenerator.csproj +++ b/CharacterRecordsGenerator/CharacterRecordsGenerator.csproj @@ -105,9 +105,6 @@ ..\packages\MahApps.Metro.1.6.5\lib\net45\MahApps.Metro.dll - - ..\packages\Microsoft.Xaml.Behaviors.Wpf.1.0.1\lib\net45\Microsoft.Xaml.Behaviors.dll - ..\packages\protobuf-net.2.4.0\lib\net40\protobuf-net.dll diff --git a/CharacterRecordsGenerator/Properties/AssemblyInfo.cs b/CharacterRecordsGenerator/Properties/AssemblyInfo.cs index f04442b..b5f2239 100644 --- a/CharacterRecordsGenerator/Properties/AssemblyInfo.cs +++ b/CharacterRecordsGenerator/Properties/AssemblyInfo.cs @@ -13,6 +13,7 @@ using System.Windows; [assembly: AssemblyCopyright("Copyright © 2022")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] +[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("CharacterRecordsGeneratorTests")] // 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 diff --git a/CharacterRecordsGeneratorTests/CharacterRecordsGenerator.Tests.csproj b/CharacterRecordsGeneratorTests/CharacterRecordsGenerator.Tests.csproj new file mode 100644 index 0000000..2a90304 --- /dev/null +++ b/CharacterRecordsGeneratorTests/CharacterRecordsGenerator.Tests.csproj @@ -0,0 +1,74 @@ + + + + + + Debug + AnyCPU + {195A07A8-03F7-4A1F-932F-73F934EF324F} + Library + Properties + CharacterRecordsGeneratorTests + CharacterRecordsGeneratorTests + v4.5.2 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + + + + + + + + + + + + {2e1295c2-7bd9-454e-b13e-8a22448dd5f6} + CharacterRecordsGenerator + + + + + + + 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/CharacterRecordsGeneratorTests/CharacterRecordsUtilitiesTests.cs b/CharacterRecordsGeneratorTests/CharacterRecordsUtilitiesTests.cs new file mode 100644 index 0000000..05fa216 --- /dev/null +++ b/CharacterRecordsGeneratorTests/CharacterRecordsUtilitiesTests.cs @@ -0,0 +1,18 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using CharacterRecordsGenerator; + +namespace CharacterRecordsGeneratorTests +{ + [TestClass] + public class CharacterRecordsUtilitiesTests + { + [TestMethod] + public void Utility_CmToFeet_WithValidNumber() + { + double cm = 150.0; + string expected = "4'11\""; + Assert.AreEqual(expected, Utility.CmToFeet(cm)); + } + } +} diff --git a/CharacterRecordsGeneratorTests/Properties/AssemblyInfo.cs b/CharacterRecordsGeneratorTests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0dda8c2 --- /dev/null +++ b/CharacterRecordsGeneratorTests/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("CharacterRecordsGeneratorTests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CharacterRecordsGeneratorTests")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("195a07a8-03f7-4a1f-932f-73f934ef324f")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CharacterRecordsGeneratorTests/packages.config b/CharacterRecordsGeneratorTests/packages.config new file mode 100644 index 0000000..506206f --- /dev/null +++ b/CharacterRecordsGeneratorTests/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file