Permalink
Browse files

Initial project layout for the NUnit mobile runners

  • Loading branch information...
1 parent cbdc577 commit c2dfbd86d2f3fa904c746231c95805eb5b6fa188 @rprouse rprouse committed Mar 22, 2015
Showing with 1,714 additions and 0 deletions.
  1. +28 −0 .editorconfig
  2. +7 −0 .gitattributes
  3. +20 −0 LICENSE.txt
  4. +214 −0 nunit.runner.sln
  5. +167 −0 nunit.runner.sln.DotSettings
  6. +26 −0 src/runner/nunit.runner.Droid/Properties/AssemblyInfo.cs
  7. +50 −0 src/runner/nunit.runner.Droid/Resources/AboutResources.txt
  8. +60 −0 src/runner/nunit.runner.Droid/Resources/Resource.Designer.cs
  9. +5 −0 src/runner/nunit.runner.Droid/Resources/Values/Strings.xml
  10. +95 −0 src/runner/nunit.runner.Droid/nunit.runner.Droid.csproj
  11. +5 −0 src/runner/nunit.runner.Droid/packages.config
  12. +26 −0 src/runner/nunit.runner.iOS/Properties/AssemblyInfo.cs
  13. +67 −0 src/runner/nunit.runner.iOS/nunit.runner.iOS.csproj
  14. +4 −0 src/runner/nunit.runner.iOS/packages.config
  15. +67 −0 src/runner/nunit.runner/App.cs
  16. +55 −0 src/runner/nunit.runner/Properties/AssemblyInfoCommon.cs
  17. +15 −0 src/runner/nunit.runner/nunit.runner.projitems
  18. +12 −0 src/runner/nunit.runner/nunit.runner.shproj
  19. +4 −0 src/runner/nunit.runner/packages.config
  20. +19 −0 src/tests/nunit.runner.tests.Droid/Assets/AboutAssets.txt
  21. +42 −0 src/tests/nunit.runner.tests.Droid/MainActivity.cs
  22. +5 −0 src/tests/nunit.runner.tests.Droid/Properties/AndroidManifest.xml
  23. +26 −0 src/tests/nunit.runner.tests.Droid/Properties/AssemblyInfo.cs
  24. +50 −0 src/tests/nunit.runner.tests.Droid/Resources/AboutResources.txt
  25. +82 −0 src/tests/nunit.runner.tests.Droid/Resources/Resource.Designer.cs
  26. BIN src/tests/nunit.runner.tests.Droid/Resources/drawable-hdpi/icon.png
  27. BIN src/tests/nunit.runner.tests.Droid/Resources/drawable-xhdpi/icon.png
  28. BIN src/tests/nunit.runner.tests.Droid/Resources/drawable-xxhdpi/icon.png
  29. BIN src/tests/nunit.runner.tests.Droid/Resources/drawable/icon.png
  30. +112 −0 src/tests/nunit.runner.tests.Droid/nunit.runner.tests.Droid.csproj
  31. +5 −0 src/tests/nunit.runner.tests.Droid/packages.config
  32. +50 −0 src/tests/nunit.runner.tests.iOS/AppDelegate.cs
  33. +7 −0 src/tests/nunit.runner.tests.iOS/Entitlements.plist
  34. +52 −0 src/tests/nunit.runner.tests.iOS/Info.plist
  35. +38 −0 src/tests/nunit.runner.tests.iOS/Main.cs
  36. +26 −0 src/tests/nunit.runner.tests.iOS/Properties/AssemblyInfo.cs
  37. BIN src/tests/nunit.runner.tests.iOS/Resources/Default-568h@2x.png
  38. BIN src/tests/nunit.runner.tests.iOS/Resources/Default-Portrait.png
  39. BIN src/tests/nunit.runner.tests.iOS/Resources/Default-Portrait@2x.png
  40. BIN src/tests/nunit.runner.tests.iOS/Resources/Default.png
  41. BIN src/tests/nunit.runner.tests.iOS/Resources/Default@2x.png
  42. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-60@2x.png
  43. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-60@3x.png
  44. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-76.png
  45. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-76@2x.png
  46. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-Small-40.png
  47. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-Small-40@2x.png
  48. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-Small-40@3x.png
  49. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-Small.png
  50. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-Small@2x.png
  51. BIN src/tests/nunit.runner.tests.iOS/Resources/Icon-Small@3x.png
  52. +39 −0 src/tests/nunit.runner.tests.iOS/Resources/LaunchScreen.storyboard
  53. BIN src/tests/nunit.runner.tests.iOS/iTunesArtwork
  54. BIN src/tests/nunit.runner.tests.iOS/iTunesArtwork@2x
  55. +149 −0 src/tests/nunit.runner.tests.iOS/nunit.runner.tests.iOS.csproj
  56. +4 −0 src/tests/nunit.runner.tests.iOS/packages.config
  57. +55 −0 src/tests/nunit.runner.tests/Properties/AssemblyInfoCommon.cs
  58. +14 −0 src/tests/nunit.runner.tests/nunit.runner.tests.projitems
  59. +12 −0 src/tests/nunit.runner.tests/nunit.runner.tests.shproj
View
@@ -0,0 +1,28 @@
+# EditorConfig helps developers define and
+# maintain consistent coding styles between
+# different editors and IDEs
+
+# http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+
+[*.csproj]
+indent_style = space
+indent_size = 2
+
+[*.vcxproj]
+indent_style = space
+indent_size = 2
+
+[*.config]
+indent_style = space
+indent_size = 2
+
+[NUnit.proj]
+indent_style = tab
+indent_size = 2
View
@@ -61,3 +61,10 @@
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
+
+
+###############################################################################
+# Xamarin and NUnit Specific
+###############################################################################
+*.DotSettings text eol=lf
+AndroidManifest.xml text eol=lf
View
@@ -0,0 +1,20 @@
+Copyright (c) 2014 Charlie Poole
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
View
Oops, something went wrong.
Oops, something went wrong.
@@ -0,0 +1,26 @@
+// Copyright (c) 2015 Charlie Poole
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// ***********************************************************************
+
+using System.Reflection;
+
+[assembly: AssemblyTitle("NUnit.Runner.Droid")]
+[assembly: AssemblyDescription("NUnit Test Runner for Android")]
@@ -0,0 +1,50 @@
+Images, layout descriptions, binary blobs and string dictionaries can be included
+in your application as resource files. Various Android APIs are designed to
+operate on the resource IDs instead of dealing with images, strings or binary blobs
+directly.
+
+For example, a sample Android app that contains a user interface layout (main.xml),
+an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
+would keep its resources in the "Resources" directory of the application:
+
+Resources/
+ drawable-hdpi/
+ icon.png
+
+ drawable-ldpi/
+ icon.png
+
+ drawable-mdpi/
+ icon.png
+
+ layout/
+ main.xml
+
+ values/
+ strings.xml
+
+In order to get the build system to recognize Android resources, set the build action to
+"AndroidResource". The native Android APIs do not operate directly with filenames, but
+instead operate on resource IDs. When you compile an Android application that uses resources,
+the build system will package the resources for distribution and generate a class called
+"Resource" that contains the tokens for each one of the resources included. For example,
+for the above Resources layout, this is what the Resource class would expose:
+
+public class Resource {
+ public class drawable {
+ public const int icon = 0x123;
+ }
+
+ public class layout {
+ public const int main = 0x456;
+ }
+
+ public class strings {
+ public const int first_string = 0xabc;
+ public const int second_string = 0xbcd;
+ }
+}
+
+You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
+to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
+string in the dictionary file values/strings.xml.
@@ -0,0 +1,60 @@
+#pragma warning disable 1591
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.0
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+[assembly: global::Android.Runtime.ResourceDesignerAttribute("Nunit.Runner.Resource", IsApplication=false)]
+
+namespace Nunit.Runner
+{
+
+
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
+ public partial class Resource
+ {
+
+ static Resource()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ public partial class Attribute
+ {
+
+ static Attribute()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private Attribute()
+ {
+ }
+ }
+
+ public partial class String
+ {
+
+ // aapt resource value: 0x7f020001
+ public static int ApplicationName = 2130837505;
+
+ // aapt resource value: 0x7f020000
+ public static int Hello = 2130837504;
+
+ static String()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private String()
+ {
+ }
+ }
+ }
+}
+#pragma warning restore 1591
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="Hello">Hello World, Click Me!</string>
+ <string name="ApplicationName">$projectname$</string>
+</resources>
@@ -0,0 +1,95 @@
+<?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>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{3BF3745A-8491-46A9-AF66-F8DE22ACCF31}</ProjectGuid>
+ <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Nunit.Runner</RootNamespace>
+ <AssemblyName>nunit.runner.Droid</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ <AndroidUseLatestPlatformSdk>
+ </AndroidUseLatestPlatformSdk>
+ <DevInstrumentationEnabled>True</DevInstrumentationEnabled>
+ <TargetFrameworkVersion>v4.0.3</TargetFrameworkVersion>
+ <NuGetPackageImportStamp>437034a3</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>$(SolutionDir)bin\$(Configuration)\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;__DROID__</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>$(SolutionDir)bin\$(Configuration)\</OutputPath>
+ <DefineConstants>TRACE;__DROID__</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="FormsViewGroup, Version=1.3.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\packages\Xamarin.Forms.1.3.2.6316\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
+ </Reference>
+ <Reference Include="Mono.Android" />
+ <Reference Include="mscorlib" />
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Xml" />
+ <Reference Include="Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\packages\Xamarin.Android.Support.v4.21.0.3.0\lib\MonoAndroid10\Xamarin.Android.Support.v4.dll</HintPath>
+ </Reference>
+ <Reference Include="Xamarin.Forms.Core, Version=1.3.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\packages\Xamarin.Forms.1.3.2.6316\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Xamarin.Forms.Platform.Android, Version=1.3.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\packages\Xamarin.Forms.1.3.2.6316\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll</HintPath>
+ </Reference>
+ <Reference Include="Xamarin.Forms.Xaml, Version=1.3.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\packages\Xamarin.Forms.1.3.2.6316\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Resources\Resource.Designer.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="Resources\AboutResources.txt" />
+ </ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\Values\Strings.xml" />
+ </ItemGroup>
+ <Import Project="..\nunit.runner\nunit.runner.projitems" Label="Shared" Condition="Exists('..\nunit.runner\nunit.runner.projitems')" />
+ <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
+ <Import Project="..\..\..\packages\Xamarin.Forms.1.3.2.6316\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets" Condition="Exists('..\..\..\packages\Xamarin.Forms.1.3.2.6316\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" />
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
+ </PropertyGroup>
+ <Error Condition="!Exists('..\..\..\packages\Xamarin.Forms.1.3.2.6316\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\Xamarin.Forms.1.3.2.6316\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets'))" />
+ </Target>
+ <!-- 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>
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Xamarin.Android.Support.v4" version="21.0.3.0" targetFramework="MonoAndroid403" />
+ <package id="Xamarin.Forms" version="1.3.2.6316" targetFramework="MonoAndroid403" />
+</packages>
@@ -0,0 +1,26 @@
+// Copyright (c) 2015 Charlie Poole
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// ***********************************************************************
+
+using System.Reflection;
+
+[assembly: AssemblyTitle("NUnit.Runner.iOS")]
+[assembly: AssemblyDescription("NUnit Test Runner for iOS")]
Oops, something went wrong.

0 comments on commit c2dfbd8

Please sign in to comment.