Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Local.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Local" id="7a23884f-373f-4554-a54b-ce3346408aa2" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are default test settings for a local test run.</Description>
<Deployment enabled="false" />
<Execution>
<TestTypeSpecific />
<AgentRule name="Execution Agents">
</AgentRule>
</Execution>
</TestSettings>
80 changes: 80 additions & 0 deletions MorseCode.Test/MorseCode.Test.cs
Original file line number Diff line number Diff line change
@@ -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>
/// Summary description for MorseCode
/// </summary>
[TestClass]
public class MorseCodeTest
{
public MorseCodeTest()
{
//
// TODO: Add constructor logic here
//
}

private TestContext testContextInstance;

/// <summary>
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///</summary>
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);
}
}
}
65 changes: 65 additions & 0 deletions MorseCode.Test/MorseCode.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9C8D7A79-C6AB-495E-9527-A3F776AF272E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MorseCode.Test</RootNamespace>
<AssemblyName>MorseCode.Test</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
<Visible>False</Visible>
</CodeAnalysisDependentAssemblyPaths>
</ItemGroup>
<ItemGroup>
<Compile Include="MorseCode.Test.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MorseCode\MorseCode.csproj">
<Project>{EEE9C76A-873A-4841-A313-67F03C2981D0}</Project>
<Name>MorseCode</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
35 changes: 35 additions & 0 deletions MorseCode.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
Binary file added MorseCode.Test/bin/Debug/MorseCode.Test.dll
Binary file not shown.
Binary file added MorseCode.Test/bin/Debug/MorseCode.Test.pdb
Binary file not shown.
Binary file added MorseCode.Test/bin/Debug/MorseCode.dll
Binary file not shown.
Binary file added MorseCode.Test/bin/Debug/MorseCode.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
Binary file added MorseCode.Test/obj/Debug/MorseCode.Test.dll
Binary file not shown.
Binary file added MorseCode.Test/obj/Debug/MorseCode.Test.pdb
Binary file not shown.
Loading