 415049af7a
			
		
	
	415049af7a
	
	
	
		
			
			added tests for StorageSelectionActivity, fixed bugs if database is read-only, no edit buttons are displayed
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| 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());
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadKdb1WithKeyfileByDirectCall"));
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadKdb1WithKeyfileOnly"));
 | |
| 
 | |
| 			
 | |
| 			runner.AddTests(new List<Type> { typeof(TestSelectStorageLocation) });
 | |
| 			//runner.AddTests(new List<Type> { typeof(TestSynchronizeCachedDatabase)});
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("LoadErrorWithCertificateTrustFailure"));
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("LoadWithAcceptedCertificateTrustFailure"));
 | |
| 			
 | |
| 			//runner.AddTests(new List<Type> { typeof(TestLoadDb) });
 | |
| 			//runner.AddTests(new List<Type> { typeof(TestCachingFileStorage) });
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadKdb1"));
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("LoadAndSaveFromRemote1And1Ftp"));
 | |
| 			//runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadKdbpWithPasswordOnly"));
 | |
| 			//runner.AddTests(typeof(TestSaveDb).GetMethod("TestLoadKdbxAndSaveKdbp_TestIdenticalFiles"));
 | |
|             return runner;
 | |
|         }
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 |