Skip to content

Commit

Permalink
LayoutNET.Tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncowen88 committed Jun 2, 2015
1 parent 693b2f8 commit 0b56b7d
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 0 deletions.
12 changes: 12 additions & 0 deletions AutoLayoutPanel.sln
Expand Up @@ -16,6 +16,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LayoutNET.Tests", "LayoutNET.Tests\LayoutNET.Tests.csproj", "{280D7732-8C43-49EF-9DF0-1F4D25365845}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -66,6 +68,16 @@ Global
{4B2FB9BB-660C-45B2-9A74-ECC3A8206778}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{4B2FB9BB-660C-45B2-9A74-ECC3A8206778}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{4B2FB9BB-660C-45B2-9A74-ECC3A8206778}.Release|x86.ActiveCfg = Release|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Debug|Any CPU.Build.0 = Debug|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Debug|x86.ActiveCfg = Debug|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Release|Any CPU.ActiveCfg = Release|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Release|Any CPU.Build.0 = Release|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{280D7732-8C43-49EF-9DF0-1F4D25365845}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
65 changes: 65 additions & 0 deletions LayoutNET.Tests/LayoutNET.Tests.csproj
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{280D7732-8C43-49EF-9DF0-1F4D25365845}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>LayoutNET.Tests</RootNamespace>
<AssemblyName>LayoutNET.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<TargetFrameworkProfile />
</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="Moq, Version=4.2.1502.911, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
<HintPath>..\packages\Moq.4.2.1502.0911\lib\net40\Moq.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="_Class1Tests.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\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>
36 changes: 36 additions & 0 deletions LayoutNET.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("LayoutNET.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LayoutNET.Tests")]
[assembly: AssemblyCopyright("Copyright © Simon Cowen 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("4704cf20-713d-4cf3-9d8f-9d060b194ec2")]

// 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")]
54 changes: 54 additions & 0 deletions LayoutNET.Tests/_Class1Tests.cs
@@ -0,0 +1,54 @@
using System;
using NUnit.Framework;
using Moq;

namespace LayoutNET.Tests
{
public class Class1 { }

[TestFixture]
public class Class1Tests
{
#region Helpers

public abstract class TestBase
{
[SetUp]
public virtual void SetUp()
{
}

[TearDown]
public virtual void TearDown()
{
}

internal Class1 GetTarget()
{
return new Class1();
}
}

#endregion

[TestFixture]
public class ConstructorTests //: TestBase
{
[Test]
public void can_be_created()
{
var target = new Class1();
Assert.Pass();
}
}

[TestFixture]
public class Method1Tests : TestBase
{
[Test]
public void when_foo_then_bar()
{
}
}
}
}
5 changes: 5 additions & 0 deletions LayoutNET.Tests/packages.config
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Moq" version="4.2.1502.0911" targetFramework="net451" />
<package id="NUnit" version="2.6.4" targetFramework="net451" />
</packages>

0 comments on commit 0b56b7d

Please sign in to comment.