Fixed bug with loading attachments from kdb
Update to GPL V3 Regard CanWrite in UI
This commit is contained in:
		@@ -25,9 +25,9 @@ namespace Kp2aUnitTests
 | 
			
		||||
			//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("TestLoadWithKeyfileOnly"));
 | 
			
		||||
			runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadKdbpWithPasswordOnly"));
 | 
			
		||||
			runner.AddTests(typeof(TestSaveDb).GetMethod("TestLoadKdbxAndSaveKdbp_TestIdenticalFiles"));
 | 
			
		||||
			//runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadWithKeyfileOnly"));
 | 
			
		||||
			//runner.AddTests(typeof(TestLoadDb).GetMethod("TestLoadKdbpWithPasswordOnly"));
 | 
			
		||||
			//runner.AddTests(typeof(TestSaveDb).GetMethod("TestLoadKdbxAndSaveKdbp_TestIdenticalFiles"));
 | 
			
		||||
            return runner;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -68,6 +68,8 @@ namespace Kp2aUnitTests
 | 
			
		||||
			Assert.AreEqual(6, app.GetDb().KpDatabase.RootGroup.Groups.Count());
 | 
			
		||||
			PwGroup generalGroup = app.GetDb().KpDatabase.RootGroup.Groups.Single(g => g.Name == "General");
 | 
			
		||||
			Assert.AreEqual(2, generalGroup.Entries.Count());
 | 
			
		||||
			foreach (PwEntry e in generalGroup.Entries)
 | 
			
		||||
				Assert.IsFalse(e.Binaries.Any());
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		[TestMethod]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user