Fixed bug with loading attachments from kdb

Update to GPL V3
Regard CanWrite in UI
This commit is contained in:
Philipp Crocoll
2014-01-26 05:27:27 -08:00
parent 8bbd18d3f8
commit dc4088e7c7
71 changed files with 2436 additions and 6611 deletions

View File

@@ -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;
}
}

View File

@@ -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]