Skip to content

Commit bd43835

Browse files
committed
Merge pull request #32 from bordoley/xunit
Xunit
2 parents f827bb2 + a3b3df6 commit bd43835

44 files changed

Lines changed: 1548 additions & 1362 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SQLitePCL.pretty.Orm/SQLitePCL.pretty.Orm.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
<HintPath>..\packages\Rx-PlatformServices.2.2.5\lib\portable-net45+winrt45+wp8+wpa81\System.Reactive.PlatformServices.dll</HintPath>
217217
</Reference>
218218
<Reference Include="SQLitePCL.raw">
219-
<HintPath>..\packages\SQLitePCL.raw.0.8.0-pre1\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLitePCL.raw.dll</HintPath>
219+
<HintPath>..\packages\SQLitePCL.raw.0.8.0-pre3\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLitePCL.raw.dll</HintPath>
220220
</Reference>
221221
</ItemGroup>
222222
<ItemGroup>

SQLitePCL.pretty.Orm/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
<package id="Rx-Linq" version="2.2.5" targetFramework="portable-net45+win+wpa81+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
66
<package id="Rx-Main" version="2.2.5" targetFramework="portable-net45+win+wpa81+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
77
<package id="Rx-PlatformServices" version="2.2.5" targetFramework="portable-net45+win+wpa81+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
8-
<package id="SQLitePCL.raw" version="0.8.0-pre1" targetFramework="portable-net45+win+wpa81+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
8+
<package id="SQLitePCL.raw" version="0.8.0-pre3" targetFramework="portable-net45+win+wpa81+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
99
</packages>

SQLitePCL.pretty.sln

Lines changed: 196 additions & 14 deletions
Large diffs are not rendered by default.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using System;
2+
using System.Reflection;
3+
using Android.App;
4+
using Android.Content;
5+
using Android.Runtime;
6+
using Android.Views;
7+
using Android.Widget;
8+
using Android.OS;
9+
10+
using Xunit.Sdk;
11+
using Xunit.Runners.UI;
12+
13+
namespace SQLitePCL.pretty.tests.Android
14+
{
15+
[Activity(Label = "xUnit Android Runner", MainLauncher = true)]
16+
public class MainActivity : RunnerActivity
17+
{
18+
19+
protected override void OnCreate(Bundle bundle)
20+
{
21+
AddTestAssembly(typeof(SQLitePCL.pretty.tests.SQLiteDatabaseConnectionTests).Assembly);
22+
// or in any assembly that you load (since JIT is available)
23+
24+
#if false
25+
// you can use the default or set your own custom writer (e.g. save to web site and tweet it ;-)
26+
Writer = new TcpTextWriter ("10.0.1.2", 16384);
27+
// start running the test suites as soon as the application is loaded
28+
AutoStart = true;
29+
// crash the application (to ensure it's ended) and return to springboard
30+
TerminateAfterExecution = true;
31+
#endif
32+
// you cannot add more assemblies once calling base
33+
base.OnCreate(bundle);
34+
}
35+
}
36+
}
37+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="SQLitePCL.pretty.tests.Android">
3+
<uses-sdk />
4+
<application android:label="SQLitePCL.pretty.tests.Android">
5+
</application>
6+
</manifest>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using Android.App;
4+
5+
// Information about this assembly is defined by the following attributes.
6+
// Change them to the values specific to your project.
7+
8+
[assembly: AssemblyTitle("SQLitePCL.pretty.tests")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("")]
13+
[assembly: AssemblyCopyright("dave")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
7+
<ProjectGuid>{A3278FF6-0B65-482E-AE3E-7AEF33C4F25C}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<RootNamespace>SQLitePCL.pretty.tests.Android</RootNamespace>
10+
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
11+
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
12+
<AndroidResgenClass>Resource</AndroidResgenClass>
13+
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
14+
<AndroidApplication>True</AndroidApplication>
15+
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
16+
<AssemblyName>SQLitePCL.pretty.tests.Android</AssemblyName>
17+
<TargetFrameworkVersion>v4.4</TargetFrameworkVersion>
18+
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>false</Optimize>
24+
<OutputPath>bin\Debug</OutputPath>
25+
<DefineConstants>DEBUG;</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
<AndroidLinkMode>None</AndroidLinkMode>
29+
<ConsolePause>false</ConsolePause>
30+
</PropertyGroup>
31+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
32+
<DebugType>full</DebugType>
33+
<Optimize>true</Optimize>
34+
<OutputPath>bin\Release</OutputPath>
35+
<ErrorReport>prompt</ErrorReport>
36+
<WarningLevel>4</WarningLevel>
37+
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
38+
<ConsolePause>false</ConsolePause>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="System" />
42+
<Reference Include="System.Xml" />
43+
<Reference Include="System.Core" />
44+
<Reference Include="Mono.Android" />
45+
<Reference Include="System.Reactive.Core">
46+
<HintPath>..\packages\Rx-Core.2.2.5\lib\portable-net45+winrt45+wp8+wpa81\System.Reactive.Core.dll</HintPath>
47+
</Reference>
48+
<Reference Include="System.Reactive.Interfaces">
49+
<HintPath>..\packages\Rx-Interfaces.2.2.5\lib\portable-net45+winrt45+wp8+wpa81\System.Reactive.Interfaces.dll</HintPath>
50+
</Reference>
51+
<Reference Include="System.Reactive.Linq">
52+
<HintPath>..\packages\Rx-Linq.2.2.5\lib\portable-net45+winrt45+wp8+wpa81\System.Reactive.Linq.dll</HintPath>
53+
</Reference>
54+
<Reference Include="System.Reactive.PlatformServices">
55+
<HintPath>..\packages\Rx-PlatformServices.2.2.5\lib\portable-net45+winrt45+wp8+wpa81\System.Reactive.PlatformServices.dll</HintPath>
56+
</Reference>
57+
<Reference Include="xunit.abstractions">
58+
<HintPath>..\packages\xunit.abstractions.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.abstractions.dll</HintPath>
59+
</Reference>
60+
<Reference Include="xunit.core">
61+
<HintPath>..\packages\xunit.extensibility.core.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.dll</HintPath>
62+
</Reference>
63+
<Reference Include="xunit.execution.MonoAndroid">
64+
<HintPath>..\packages\xunit.extensibility.execution.2.0.0\lib\monoandroid\xunit.execution.MonoAndroid.dll</HintPath>
65+
</Reference>
66+
<Reference Include="xunit.runner.utility.MonoAndroid">
67+
<HintPath>..\packages\xunit.runner.utility.2.0.0\lib\monoandroid\xunit.runner.utility.MonoAndroid.dll</HintPath>
68+
</Reference>
69+
<Reference Include="xunit.assert">
70+
<HintPath>..\packages\xunit.assert.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.assert.dll</HintPath>
71+
</Reference>
72+
<Reference Include="Xamarin.Android.Support.v4">
73+
<HintPath>..\packages\Xamarin.Android.Support.v4.21.0.3.0\lib\MonoAndroid10\Xamarin.Android.Support.v4.dll</HintPath>
74+
</Reference>
75+
<Reference Include="Xamarin.Forms.Platform.Android">
76+
<HintPath>..\packages\Xamarin.Forms.1.4.0.6341\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll</HintPath>
77+
</Reference>
78+
<Reference Include="FormsViewGroup">
79+
<HintPath>..\packages\Xamarin.Forms.1.4.0.6341\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
80+
</Reference>
81+
<Reference Include="Xamarin.Forms.Core">
82+
<HintPath>..\packages\Xamarin.Forms.1.4.0.6341\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
83+
</Reference>
84+
<Reference Include="Xamarin.Forms.Xaml">
85+
<HintPath>..\packages\Xamarin.Forms.1.4.0.6341\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
86+
</Reference>
87+
<Reference Include="xunit.runner.devices">
88+
<HintPath>..\packages\xunit.runner.devices.1.0.0\lib\MonoAndroid\xunit.runner.devices.dll</HintPath>
89+
</Reference>
90+
<Reference Include="SQLitePCL.raw">
91+
<HintPath>..\packages\SQLitePCL.raw.0.8.0-pre3\build\MonoAndroid\pinvoke_packaged_sqlite3\anycpu\SQLitePCL.raw.dll</HintPath>
92+
</Reference>
93+
</ItemGroup>
94+
<ItemGroup>
95+
<Compile Include="Properties\AssemblyInfo.cs" />
96+
<Compile Include="MainActivity.cs" />
97+
</ItemGroup>
98+
<ItemGroup>
99+
<None Include="Properties\AndroidManifest.xml" />
100+
<None Include="packages.config" />
101+
</ItemGroup>
102+
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
103+
<Import Project="..\packages\Xamarin.Forms.1.4.0.6341\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.1.4.0.6341\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" />
104+
<Import Project="..\packages\xunit.runner.devices.1.0.0\build\MonoAndroid\xunit.runner.devices.targets" Condition="Exists('..\packages\xunit.runner.devices.1.0.0\build\MonoAndroid\xunit.runner.devices.targets')" />
105+
<Import Project="..\packages\xunit.core.2.0.0\build\monoandroid\xunit.core.props" Condition="Exists('..\packages\xunit.core.2.0.0\build\monoandroid\xunit.core.props')" />
106+
<Import Project="..\packages\SQLitePCL.raw.0.8.0-pre3\build\MonoAndroid\SQLitePCL.raw.targets" Condition="Exists('..\packages\SQLitePCL.raw.0.8.0-pre3\build\MonoAndroid\SQLitePCL.raw.targets')" />
107+
<ItemGroup>
108+
<ProjectReference Include="..\SQLitePCL.pretty\SQLitePCL.pretty.csproj">
109+
<Project>{C6743D26-E16E-41CA-A757-72BE2D7EAF28}</Project>
110+
<Name>SQLitePCL.pretty</Name>
111+
</ProjectReference>
112+
<ProjectReference Include="..\SQLitePCL.pretty.Async\SQLitePCL.pretty.Async.csproj">
113+
<Project>{ED71D4D4-498E-432E-B941-F704CECCF254}</Project>
114+
<Name>SQLitePCL.pretty.Async</Name>
115+
</ProjectReference>
116+
<ProjectReference Include="..\SQLitePCL.pretty.Orm\SQLitePCL.pretty.Orm.csproj">
117+
<Project>{82EF24A8-7B24-42AA-BDB9-7A9F7527DF48}</Project>
118+
<Name>SQLitePCL.pretty.Orm</Name>
119+
</ProjectReference>
120+
<ProjectReference Include="..\SQLitePCL.pretty.Tests\SQLitePCL.pretty.Tests.csproj">
121+
<Project>{3C8B2558-E287-4031-8597-14480A15ED0E}</Project>
122+
<Name>SQLitePCL.pretty.Tests</Name>
123+
</ProjectReference>
124+
</ItemGroup>
125+
<ItemGroup>
126+
<Folder Include="Resources\" />
127+
</ItemGroup>
128+
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="SQLitePCL.raw" version="0.8.0-pre3" targetFramework="MonoAndroid44" />
4+
<package id="Xamarin.Android.Support.v4" version="21.0.3.0" targetFramework="MonoAndroid44" />
5+
<package id="Xamarin.Forms" version="1.4.0.6341" targetFramework="MonoAndroid44" />
6+
<package id="xunit" version="2.0.0" targetFramework="MonoAndroid44" />
7+
<package id="xunit.abstractions" version="2.0.0" targetFramework="MonoAndroid44" />
8+
<package id="xunit.assert" version="2.0.0" targetFramework="MonoAndroid44" />
9+
<package id="xunit.core" version="2.0.0" targetFramework="MonoAndroid44" />
10+
<package id="xunit.extensibility.core" version="2.0.0" targetFramework="MonoAndroid44" />
11+
<package id="xunit.extensibility.execution" version="2.0.0" targetFramework="MonoAndroid44" />
12+
<package id="xunit.runner.devices" version="1.0.0" targetFramework="MonoAndroid44" />
13+
<package id="xunit.runner.utility" version="2.0.0" targetFramework="MonoAndroid44" />
14+
</packages>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Reflection;
5+
using Foundation;
6+
using UIKit;
7+
8+
using Xunit.Runner;
9+
using Xunit.Sdk;
10+
11+
12+
namespace SQLitePCL.pretty.tests.iOS
13+
{
14+
// The UIApplicationDelegate for the application. This class is responsible for launching the
15+
// User Interface of the application, as well as listening (and optionally responding) to
16+
// application events from iOS.
17+
[Register("AppDelegate")]
18+
public partial class AppDelegate : RunnerAppDelegate
19+
{
20+
21+
//
22+
// This method is invoked when the application has loaded and is ready to run. In this
23+
// method you should instantiate the window, load the UI into it and then make the window
24+
// visible.
25+
//
26+
// You have 17 seconds to return from this method, or iOS will terminate your application.
27+
//
28+
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
29+
{
30+
// We need this to ensure the execution assembly is part of the app bundle
31+
AddExecutionAssembly(typeof(ExtensibilityPointFactory).Assembly);
32+
33+
AddTestAssembly(typeof(SQLitePCL.pretty.tests.SQLiteDatabaseConnectionTests).Assembly);
34+
return base.FinishedLaunching(app, options);
35+
}
36+
}
37+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
</dict>
6+
</plist>

0 commit comments

Comments
 (0)