Splitted keepass2android project into
- keepass2android: UI stuff only - Kp2aBusinessLogic: Password-Database related algorithms (even though tied to android, no UI required here) Removed dependencies of logic layer to static Application, Resource class or other UI stuff Added MonoDroidUnitTesting (not yet used, will be used for testing logic layer)
This commit is contained in:
27
src/Kp2aUnitTests/MainActivity.cs
Normal file
27
src/Kp2aUnitTests/MainActivity.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
|
||||
using Android.App;
|
||||
using Android.Content;
|
||||
using Android.Runtime;
|
||||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using Android.OS;
|
||||
using MonoDroidUnitTesting;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Kp2aUnitTests
|
||||
{
|
||||
[Activity(Label = "MonoDroidUnit", MainLauncher = true, Icon = "@drawable/icon")]
|
||||
public class MainActivity : GuiTestRunnerActivity
|
||||
{
|
||||
protected override TestRunner CreateTestRunner()
|
||||
{
|
||||
TestRunner runner = new TestRunner();
|
||||
// Run all tests from this assembly
|
||||
runner.AddTests(Assembly.GetExecutingAssembly());
|
||||
return runner;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user