Skip to content

Commit

Permalink
Add tests and update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jwood803 committed Oct 9, 2015
1 parent f85e959 commit fb28319
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 1 deletion.
21 changes: 21 additions & 0 deletions FakeDemo/Droid/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions FakeDemo/FakeDemo.UnitTests/FakeDemo.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>FakeDemo.UnitTests</RootNamespace>
<AssemblyName>FakeDemo.UnitTests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Test.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
</Project>
14 changes: 14 additions & 0 deletions FakeDemo/FakeDemo.UnitTests/Test.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using NUnit.Framework;

namespace FakeDemo.UnitTests
{
[TestFixture()]
public class Test
{
[Test()]
public void TestCase()
{
Assert.Fail();
}
}
}
4 changes: 4 additions & 0 deletions FakeDemo/FakeDemo.UnitTests/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="2.6.3" targetFramework="net45" />
</packages>
14 changes: 14 additions & 0 deletions FakeDemo/FakeDemo.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FakeDemo.Droid", "Droid\Fak
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FakeDemo.UITests", "UITests\FakeDemo.UITests.csproj", "{559CFEA0-A995-4A1B-8013-B14DB9B9738F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FakeDemo.UnitTests", "FakeDemo.UnitTests\FakeDemo.UnitTests.csproj", "{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -43,6 +45,18 @@ Global
{28420794-0CA6-49D2-AFBB-4F62CF2E8C2E}.Release|iPhone.Build.0 = Release|Any CPU
{28420794-0CA6-49D2-AFBB-4F62CF2E8C2E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{28420794-0CA6-49D2-AFBB-4F62CF2E8C2E}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Debug|iPhone.Build.0 = Debug|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Release|Any CPU.Build.0 = Release|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Release|iPhone.ActiveCfg = Release|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Release|iPhone.Build.0 = Release|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{48F4ABD7-EFC6-4640-BE36-29ECC13892FA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{559CFEA0-A995-4A1B-8013-B14DB9B9738F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{559CFEA0-A995-4A1B-8013-B14DB9B9738F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{559CFEA0-A995-4A1B-8013-B14DB9B9738F}.Debug|iPhone.ActiveCfg = Debug|Any CPU
Expand Down
4 changes: 3 additions & 1 deletion FakeDemo/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Target "Clean" (fun _ ->
)

Target "Test" (fun _ ->
trace "Testing stuff..."
let testDll = !! "FakeDemo.UnitTests/FakeDemo.UnitTests.csproj"

testDll |> NUnit ( fun defaults -> defaults)
)

Target "Build-Pcl" (fun _ ->
Expand Down

0 comments on commit fb28319

Please sign in to comment.