diff --git a/Local.testsettings b/Local.testsettings new file mode 100644 index 0000000..96d320b --- /dev/null +++ b/Local.testsettings @@ -0,0 +1,10 @@ + + + These are default test settings for a local test run. + + + + + + + \ No newline at end of file diff --git a/MorseCode.Test/MorseCode.Test.cs b/MorseCode.Test/MorseCode.Test.cs new file mode 100644 index 0000000..7f652cf --- /dev/null +++ b/MorseCode.Test/MorseCode.Test.cs @@ -0,0 +1,80 @@ +using System; +using System.Text; +using System.Collections.Generic; +using System.Linq; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using MorseCode; + +/* Justin Onofrey + * SoftWriters Application + * 11/6/2015 + */ + +namespace MorseCode.Test +{ + /// + /// Summary description for MorseCode + /// + [TestClass] + public class MorseCodeTest + { + public MorseCodeTest() + { + // + // TODO: Add constructor logic here + // + } + + private TestContext testContextInstance; + + /// + ///Gets or sets the test context which provides + ///information about and functionality for the current test run. + /// + public TestContext TestContext + { + get + { + return testContextInstance; + } + set + { + testContextInstance = value; + } + } + + #region Additional test attributes + // + // You can use the following additional attributes as you write your tests: + // + // Use ClassInitialize to run code before running the first test in the class + // [ClassInitialize()] + // public static void MyClassInitialize(TestContext testContext) { } + // + // Use ClassCleanup to run code after all tests in a class have run + // [ClassCleanup()] + // public static void MyClassCleanup() { } + // + // Use TestInitialize to run code before running each test + // [TestInitialize()] + // public void MyTestInitialize() { } + // + // Use TestCleanup to run code after each test has run + // [TestCleanup()] + // public void MyTestCleanup() { } + // + #endregion + + // This is our unit test for testing our method. + [TestMethod] + public void TestMorseCode() + { + MorseCode MorseCode = new MorseCode(); + string sourceFile = "C:/Temp/SoftWriters/MorseInput.txt"; + string outputFile = "C:/Temp/SoftWriters/MorseOutput.txt"; + + string result = MorseCode.TranslateMorseCodeFile(sourceFile, outputFile); + Console.WriteLine(result); + } + } +} diff --git a/MorseCode.Test/MorseCode.Test.csproj b/MorseCode.Test/MorseCode.Test.csproj new file mode 100644 index 0000000..c6c0ddb --- /dev/null +++ b/MorseCode.Test/MorseCode.Test.csproj @@ -0,0 +1,65 @@ + + + + Debug + AnyCPU + + + 2.0 + {9C8D7A79-C6AB-495E-9527-A3F776AF272E} + Library + Properties + MorseCode.Test + MorseCode.Test + v4.0 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + 3.5 + + + + + False + + + + + + + + + {EEE9C76A-873A-4841-A313-67F03C2981D0} + MorseCode + + + + + \ No newline at end of file diff --git a/MorseCode.Test/Properties/AssemblyInfo.cs b/MorseCode.Test/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..be36e0c --- /dev/null +++ b/MorseCode.Test/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +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("MorseCode.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MorseCode.Test")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[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("38797d5a-1f50-4d4b-81ad-ff460af1cdcf")] + +// 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.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/MorseCode.Test/bin/Debug/MorseCode.Test.dll b/MorseCode.Test/bin/Debug/MorseCode.Test.dll new file mode 100644 index 0000000..4ed3b31 Binary files /dev/null and b/MorseCode.Test/bin/Debug/MorseCode.Test.dll differ diff --git a/MorseCode.Test/bin/Debug/MorseCode.Test.pdb b/MorseCode.Test/bin/Debug/MorseCode.Test.pdb new file mode 100644 index 0000000..338a5b4 Binary files /dev/null and b/MorseCode.Test/bin/Debug/MorseCode.Test.pdb differ diff --git a/MorseCode.Test/bin/Debug/MorseCode.dll b/MorseCode.Test/bin/Debug/MorseCode.dll new file mode 100644 index 0000000..cbbe84c Binary files /dev/null and b/MorseCode.Test/bin/Debug/MorseCode.dll differ diff --git a/MorseCode.Test/bin/Debug/MorseCode.pdb b/MorseCode.Test/bin/Debug/MorseCode.pdb new file mode 100644 index 0000000..e402a7e Binary files /dev/null and b/MorseCode.Test/bin/Debug/MorseCode.pdb differ diff --git a/MorseCode.Test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/MorseCode.Test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..4fbb072 Binary files /dev/null and b/MorseCode.Test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/MorseCode.Test/obj/Debug/MorseCode.Test.csproj.FileListAbsolute.txt b/MorseCode.Test/obj/Debug/MorseCode.Test.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..abe9680 --- /dev/null +++ b/MorseCode.Test/obj/Debug/MorseCode.Test.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\bin\Debug\MorseCode.Test.dll +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\bin\Debug\MorseCode.Test.pdb +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\obj\Debug\MorseCode.Test.csprojResolveAssemblyReference.cache +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\obj\Debug\MorseCode.Test.dll +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\obj\Debug\MorseCode.Test.pdb +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\bin\Debug\MorseCode.dll +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode.Test\bin\Debug\MorseCode.pdb diff --git a/MorseCode.Test/obj/Debug/MorseCode.Test.csprojResolveAssemblyReference.cache b/MorseCode.Test/obj/Debug/MorseCode.Test.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..6a323f5 Binary files /dev/null and b/MorseCode.Test/obj/Debug/MorseCode.Test.csprojResolveAssemblyReference.cache differ diff --git a/MorseCode.Test/obj/Debug/MorseCode.Test.dll b/MorseCode.Test/obj/Debug/MorseCode.Test.dll new file mode 100644 index 0000000..4ed3b31 Binary files /dev/null and b/MorseCode.Test/obj/Debug/MorseCode.Test.dll differ diff --git a/MorseCode.Test/obj/Debug/MorseCode.Test.pdb b/MorseCode.Test/obj/Debug/MorseCode.Test.pdb new file mode 100644 index 0000000..338a5b4 Binary files /dev/null and b/MorseCode.Test/obj/Debug/MorseCode.Test.pdb differ diff --git a/MorseCode/MorseCode.cs b/MorseCode/MorseCode.cs new file mode 100644 index 0000000..d530888 --- /dev/null +++ b/MorseCode/MorseCode.cs @@ -0,0 +1,284 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; + +/* Justin Onofrey + * SoftWriters Application + * 11/6/2015 + */ + +namespace MorseCode +{ + public class MorseCode + { + #region Constants + private const string S_DELIMITER = "||"; + private const string S_ERROR = "ERROR"; + + private const string S_EX_EXCEPTION = "Error: An exception has occurred:"; + + private const string S_A_MORSE = ".-"; + private const string S_B_MORSE = "-..."; + private const string S_C_MORSE = "-.-."; + private const string S_D_MORSE = "-.."; + private const string S_E_MORSE = "."; + private const string S_F_MORSE = "..-."; + private const string S_G_MORSE = "--."; + private const string S_H_MORSE = "...."; + private const string S_I_MORSE = ".."; + private const string S_J_MORSE = ".---"; + private const string S_K_MORSE = "-.-"; + private const string S_L_MORSE = ".-.."; + private const string S_M_MORSE = "--"; + private const string S_N_MORSE = "-."; + private const string S_O_MORSE = "---"; + private const string S_P_MORSE = ".--."; + private const string S_Q_MORSE = "--.-"; + private const string S_R_MORSE = ".-."; + private const string S_S_MORSE = "..."; + private const string S_T_MORSE = "-"; + private const string S_U_MORSE = "..-"; + private const string S_V_MORSE = "...-"; + private const string S_W_MORSE = ".--"; + private const string S_X_MORSE = "-..-"; + private const string S_Y_MORSE = "-.--"; + private const string S_Z_MORSE = "--.."; + + private const string S_1_MORSE = ".----"; + private const string S_2_MORSE = "..---"; + private const string S_3_MORSE = "...--"; + private const string S_4_MORSE = "....-"; + private const string S_5_MORSE = "....."; + private const string S_6_MORSE = "-...."; + private const string S_7_MORSE = "--..."; + private const string S_8_MORSE = "---.."; + private const string S_9_MORSE = "----."; + private const string S_10_MORSE = "-----"; + + private const string S_A_ENGLISH = "A"; + private const string S_B_ENGLISH = "B"; + private const string S_C_ENGLISH = "C"; + private const string S_D_ENGLISH = "D"; + private const string S_E_ENGLISH = "E"; + private const string S_F_ENGLISH = "F"; + private const string S_G_ENGLISH = "G"; + private const string S_H_ENGLISH = "H"; + private const string S_I_ENGLISH = "I"; + private const string S_J_ENGLISH = "J"; + private const string S_K_ENGLISH = "K"; + private const string S_L_ENGLISH = "L"; + private const string S_M_ENGLISH = "M"; + private const string S_N_ENGLISH = "N"; + private const string S_O_ENGLISH = "O"; + private const string S_P_ENGLISH = "P"; + private const string S_Q_ENGLISH = "Q"; + private const string S_R_ENGLISH = "R"; + private const string S_S_ENGLISH = "S"; + private const string S_T_ENGLISH = "T"; + private const string S_U_ENGLISH = "U"; + private const string S_V_ENGLISH = "V"; + private const string S_W_ENGLISH = "W"; + private const string S_X_ENGLISH = "X"; + private const string S_Y_ENGLISH = "Y"; + private const string S_Z_ENGLISH = "Z"; + + private const string S_1_ENGLISH = "1"; + private const string S_2_ENGLISH = "2"; + private const string S_3_ENGLISH = "3"; + private const string S_4_ENGLISH = "4"; + private const string S_5_ENGLISH = "5"; + private const string S_6_ENGLISH = "6"; + private const string S_7_ENGLISH = "7"; + private const string S_8_ENGLISH = "8"; + private const string S_9_ENGLISH = "9"; + private const string S_10_ENGLISH = "10"; + + private const string S_SPACE = " "; + #endregion + + #region Constructor + + public MorseCode() + { + } + #endregion + + #region Methods + public string TranslateMorseCodeFile(string sourceFileLocation, string outputFileLocation) + { + string result = "Success!"; + + try + { + // Set our delimiter + string[] delimiter = { S_DELIMITER }; + + // Get our source text + string[] sourceLines = File.ReadAllLines(sourceFileLocation); + + string[] englishLines = new string[sourceLines.Length]; + string currentLine; + string[] morseLetters; + + for (int i = 0; i < sourceLines.Length; i++) + { + currentLine = ""; + morseLetters = sourceLines[i].Split(delimiter, StringSplitOptions.None); + + for (int j = 0; j < morseLetters.Length; j++) + { + currentLine += (mapLetter(morseLetters[j])); + } + + englishLines[i] = currentLine; + } + + // Write our output to output file. + File.WriteAllLines(outputFileLocation, englishLines); + } + catch (Exception ex) + { + // Formally log exceptions here and send back in return object if applicable + result = S_EX_EXCEPTION + ex.Message; + } + + return result; + } + + // We use a string as the output over a char because a char cannot hold all the outputs we wish to return + private string mapLetter(string morseLetter) + { + string englishLetter; + + // Check for an empty space to denote a space character in a sentence. + if (String.IsNullOrEmpty(morseLetter)) + { + englishLetter = S_SPACE; + return englishLetter; + } + + // Check for a valid letter or number + switch (morseLetter) + { + case S_A_MORSE: + englishLetter = S_A_ENGLISH; + break; + case S_B_MORSE: + englishLetter = S_B_ENGLISH; + break; + case S_C_MORSE: + englishLetter = S_C_ENGLISH; + break; + case S_D_MORSE: + englishLetter = S_D_ENGLISH; + break; + case S_E_MORSE: + englishLetter = S_E_ENGLISH; + break; + case S_F_MORSE: + englishLetter = S_F_ENGLISH; + break; + case S_G_MORSE: + englishLetter = S_G_ENGLISH; + break; + case S_H_MORSE: + englishLetter = S_H_ENGLISH; + break; + case S_I_MORSE: + englishLetter = S_I_ENGLISH; + break; + case S_J_MORSE: + englishLetter = S_J_ENGLISH; + break; + case S_K_MORSE: + englishLetter = S_K_ENGLISH; + break; + case S_L_MORSE: + englishLetter = S_L_ENGLISH; + break; + case S_M_MORSE: + englishLetter = S_M_ENGLISH; + break; + case S_N_MORSE: + englishLetter = S_N_ENGLISH; + break; + case S_O_MORSE: + englishLetter = S_O_ENGLISH; + break; + case S_P_MORSE: + englishLetter = S_P_ENGLISH; + break; + case S_Q_MORSE: + englishLetter = S_Q_ENGLISH; + break; + case S_R_MORSE: + englishLetter = S_R_ENGLISH; + break; + case S_S_MORSE: + englishLetter = S_S_ENGLISH; + break; + case S_T_MORSE: + englishLetter = S_T_ENGLISH; + break; + case S_U_MORSE: + englishLetter = S_U_ENGLISH; + break; + case S_V_MORSE: + englishLetter = S_V_ENGLISH; + break; + case S_W_MORSE: + englishLetter = S_W_ENGLISH; + break; + case S_X_MORSE: + englishLetter = S_X_ENGLISH; + break; + case S_Y_MORSE: + englishLetter = S_Y_ENGLISH; + break; + case S_Z_MORSE: + englishLetter = S_Z_ENGLISH; + break; + case S_1_MORSE: + englishLetter = S_1_ENGLISH; + break; + case S_2_MORSE: + englishLetter = S_2_ENGLISH; + break; + case S_3_MORSE: + englishLetter = S_3_ENGLISH; + break; + case S_4_MORSE: + englishLetter = S_4_ENGLISH; + break; + case S_5_MORSE: + englishLetter = S_5_ENGLISH; + break; + case S_6_MORSE: + englishLetter = S_6_ENGLISH; + break; + case S_7_MORSE: + englishLetter = S_7_ENGLISH; + break; + case S_8_MORSE: + englishLetter = S_8_ENGLISH; + break; + case S_9_MORSE: + englishLetter = S_9_ENGLISH; + break; + case S_10_MORSE: + englishLetter = S_10_ENGLISH; + break; + default: + englishLetter = S_ERROR; // If the text found is not a valid morse code, then return error + break; + } + + return englishLetter; + } + + #endregion + + } +} diff --git a/MorseCode/MorseCode.csproj b/MorseCode/MorseCode.csproj new file mode 100644 index 0000000..c857134 --- /dev/null +++ b/MorseCode/MorseCode.csproj @@ -0,0 +1,54 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {EEE9C76A-873A-4841-A313-67F03C2981D0} + Library + Properties + MorseCode + MorseCode + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MorseCode/Properties/AssemblyInfo.cs b/MorseCode/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..50802b2 --- /dev/null +++ b/MorseCode/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("MorseCode")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MorseCode")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[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("ea4d4897-c337-4737-96c2-fd2cda887825")] + +// 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/MorseCode/bin/Debug/MorseCode.dll b/MorseCode/bin/Debug/MorseCode.dll new file mode 100644 index 0000000..cbbe84c Binary files /dev/null and b/MorseCode/bin/Debug/MorseCode.dll differ diff --git a/MorseCode/bin/Debug/MorseCode.pdb b/MorseCode/bin/Debug/MorseCode.pdb new file mode 100644 index 0000000..e402a7e Binary files /dev/null and b/MorseCode/bin/Debug/MorseCode.pdb differ diff --git a/MorseCode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/MorseCode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..92fedcf Binary files /dev/null and b/MorseCode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/MorseCode/obj/Debug/MorseCode.csproj.FileListAbsolute.txt b/MorseCode/obj/Debug/MorseCode.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..badb878 --- /dev/null +++ b/MorseCode/obj/Debug/MorseCode.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode\bin\Debug\MorseCode.dll +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode\bin\Debug\MorseCode.pdb +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode\obj\Debug\MorseCode.dll +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode\obj\Debug\MorseCode.pdb +c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\MorseCode\obj\Debug\MorseCode.csprojResolveAssemblyReference.cache diff --git a/MorseCode/obj/Debug/MorseCode.csprojResolveAssemblyReference.cache b/MorseCode/obj/Debug/MorseCode.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..616c348 Binary files /dev/null and b/MorseCode/obj/Debug/MorseCode.csprojResolveAssemblyReference.cache differ diff --git a/MorseCode/obj/Debug/MorseCode.dll b/MorseCode/obj/Debug/MorseCode.dll new file mode 100644 index 0000000..cbbe84c Binary files /dev/null and b/MorseCode/obj/Debug/MorseCode.dll differ diff --git a/MorseCode/obj/Debug/MorseCode.pdb b/MorseCode/obj/Debug/MorseCode.pdb new file mode 100644 index 0000000..e402a7e Binary files /dev/null and b/MorseCode/obj/Debug/MorseCode.pdb differ diff --git a/MorseInput.txt b/MorseInput.txt new file mode 100644 index 0000000..66cfa54 --- /dev/null +++ b/MorseInput.txt @@ -0,0 +1,12 @@ +-..||---||--. + +....||.||.-..||.-..||---||||.--||---||.-.||.-..||-.. + + +.-||-...||-.-.||-..||.||..-.||--.||....||..||.---||-.-||.-..||--||-.||---||.--.||--.-||.-.||...||-||..-||...-||.--||-..-||-.--||--.. +.----||..---||...--||....-||.....||-....||--...||---..||----.||----- + + +....||.||.-..||.-..||---||||...||---||..-.||-||.--||.-.||..||-||.||.-.||... + +-...||-.--||||.---||..-||...||-||..||-.||||---||-.||---||..-.||.-.||.||-.-- \ No newline at end of file diff --git a/SoftWritersMorseCode.sln b/SoftWritersMorseCode.sln new file mode 100644 index 0000000..5c1fa67 --- /dev/null +++ b/SoftWritersMorseCode.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MorseCode", "MorseCode\MorseCode.csproj", "{EEE9C76A-873A-4841-A313-67F03C2981D0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MorseCode.Test", "MorseCode.Test\MorseCode.Test.csproj", "{9C8D7A79-C6AB-495E-9527-A3F776AF272E}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A8ED7108-6800-4695-AEB6-866AB62BFB1A}" + ProjectSection(SolutionItems) = preProject + Local.testsettings = Local.testsettings + SoftWritersMorseCode.vsmdi = SoftWritersMorseCode.vsmdi + TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings + EndProjectSection +EndProject +Global + GlobalSection(TestCaseManagementSettings) = postSolution + CategoryFile = SoftWritersMorseCode.vsmdi + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EEE9C76A-873A-4841-A313-67F03C2981D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EEE9C76A-873A-4841-A313-67F03C2981D0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EEE9C76A-873A-4841-A313-67F03C2981D0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EEE9C76A-873A-4841-A313-67F03C2981D0}.Release|Any CPU.Build.0 = Release|Any CPU + {9C8D7A79-C6AB-495E-9527-A3F776AF272E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9C8D7A79-C6AB-495E-9527-A3F776AF272E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9C8D7A79-C6AB-495E-9527-A3F776AF272E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9C8D7A79-C6AB-495E-9527-A3F776AF272E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/SoftWritersMorseCode.vsmdi b/SoftWritersMorseCode.vsmdi new file mode 100644 index 0000000..9390800 --- /dev/null +++ b/SoftWritersMorseCode.vsmdi @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SoftWritersMorseCode/Interface.Designer.cs b/SoftWritersMorseCode/Interface.Designer.cs new file mode 100644 index 0000000..ddf0e51 --- /dev/null +++ b/SoftWritersMorseCode/Interface.Designer.cs @@ -0,0 +1,47 @@ +namespace SoftWritersMorseCode +{ + partial class Interface + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.SuspendLayout(); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(347, 337); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + } +} + diff --git a/SoftWritersMorseCode/Interface.cs b/SoftWritersMorseCode/Interface.cs new file mode 100644 index 0000000..695db05 --- /dev/null +++ b/SoftWritersMorseCode/Interface.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace SoftWritersMorseCode +{ + public partial class Interface : Form + { + public Interface() + { + InitializeComponent(); + } + } +} diff --git a/SoftWritersMorseCode/Interface.resx b/SoftWritersMorseCode/Interface.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SoftWritersMorseCode/Interface.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SoftWritersMorseCode/Program.cs b/SoftWritersMorseCode/Program.cs new file mode 100644 index 0000000..6cf1ff8 --- /dev/null +++ b/SoftWritersMorseCode/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace SoftWritersMorseCode +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Interface()); + } + } +} diff --git a/SoftWritersMorseCode/Properties/AssemblyInfo.cs b/SoftWritersMorseCode/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9e8919a --- /dev/null +++ b/SoftWritersMorseCode/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("SoftWritersMorseCode")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SoftWritersMorseCode")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[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("05ce58fa-21b5-476e-be19-ea726c9a06ec")] + +// 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/SoftWritersMorseCode/Properties/Resources.Designer.cs b/SoftWritersMorseCode/Properties/Resources.Designer.cs new file mode 100644 index 0000000..1f45e54 --- /dev/null +++ b/SoftWritersMorseCode/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SoftWritersMorseCode.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SoftWritersMorseCode.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/SoftWritersMorseCode/Properties/Resources.resx b/SoftWritersMorseCode/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/SoftWritersMorseCode/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SoftWritersMorseCode/Properties/Settings.Designer.cs b/SoftWritersMorseCode/Properties/Settings.Designer.cs new file mode 100644 index 0000000..6456a02 --- /dev/null +++ b/SoftWritersMorseCode/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SoftWritersMorseCode.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/SoftWritersMorseCode/Properties/Settings.settings b/SoftWritersMorseCode/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/SoftWritersMorseCode/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/SoftWritersMorseCode/SoftWritersMorseCode.csproj b/SoftWritersMorseCode/SoftWritersMorseCode.csproj new file mode 100644 index 0000000..87e38b0 --- /dev/null +++ b/SoftWritersMorseCode/SoftWritersMorseCode.csproj @@ -0,0 +1,87 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {62481C0C-756A-4A8A-B683-E4B9FDD574F4} + WinExe + Properties + SoftWritersMorseCode + SoftWritersMorseCode + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + Interface.cs + + + + + Interface.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/SoftWritersMorseCode/bin/Debug/SoftWritersMorseCode.vshost.exe b/SoftWritersMorseCode/bin/Debug/SoftWritersMorseCode.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/SoftWritersMorseCode/bin/Debug/SoftWritersMorseCode.vshost.exe differ diff --git a/SoftWritersMorseCode/bin/Debug/SoftWritersMorseCode.vshost.exe.manifest b/SoftWritersMorseCode/bin/Debug/SoftWritersMorseCode.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/SoftWritersMorseCode/bin/Debug/SoftWritersMorseCode.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/SoftWritersMorseCode/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache b/SoftWritersMorseCode/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..cdf5eab Binary files /dev/null and b/SoftWritersMorseCode/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/SoftWritersMorseCode/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/SoftWritersMorseCode/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..e9f1553 Binary files /dev/null and b/SoftWritersMorseCode/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_23_56.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_23_56.trx new file mode 100644 index 0000000..219184d --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_23_56.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_25_09.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_25_09.trx new file mode 100644 index 0000000..7440f3b --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_25_09.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_28_00.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_28_00.trx new file mode 100644 index 0000000..21d9a2a --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_28_00.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_38_04.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_38_04.trx new file mode 100644 index 0000000..eb2ed50 --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_38_04.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_41_30.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_41_30.trx new file mode 100644 index 0000000..744a9dd --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_41_30.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_45_29.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_45_29.trx new file mode 100644 index 0000000..c9f93c5 --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_45_29.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Error: An exception has occurred:Could not find file 'c:\users\justin\documents\visual studio 2010\Projects\SoftWritersMorseCode\TestResults\Justin_SOVEREIGN 2015-11-06 01_45_29\Out\MorseInput.txt'. + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_46_24.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_46_24.trx new file mode 100644 index 0000000..8e06bff --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_46_24.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TestResults/Justin_SOVEREIGN 2015-11-06 01_51_47.trx b/TestResults/Justin_SOVEREIGN 2015-11-06 01_51_47.trx new file mode 100644 index 0000000..07bdc75 --- /dev/null +++ b/TestResults/Justin_SOVEREIGN 2015-11-06 01_51_47.trx @@ -0,0 +1,38 @@ + + + + These are default test settings for a local test run. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Success! + + + + \ No newline at end of file diff --git a/TraceAndTestImpact.testsettings b/TraceAndTestImpact.testsettings new file mode 100644 index 0000000..7263eba --- /dev/null +++ b/TraceAndTestImpact.testsettings @@ -0,0 +1,9 @@ + + + These are test settings for Trace and Test Impact. + + + + + + \ No newline at end of file