mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Error messages are now caught at the app level (see if it's a good solution in the long term)
Redesign of the create key file button
This commit is contained in:
@@ -36,7 +36,8 @@ namespace ModernKeePassApp.Test
|
||||
public void TestSave()
|
||||
{
|
||||
TestOpen();
|
||||
Assert.IsTrue(_database.Save(ApplicationData.Current.TemporaryFolder.CreateFileAsync("SaveDatabase.kdbx").GetAwaiter().GetResult()));
|
||||
_database.Save(ApplicationData.Current.TemporaryFolder.CreateFileAsync("SaveDatabase.kdbx").GetAwaiter().GetResult());
|
||||
Assert.AreEqual((int)DatabaseHelper.DatabaseStatus.Opened, _database.Status);
|
||||
_database.Close();
|
||||
Assert.AreEqual((int)DatabaseHelper.DatabaseStatus.Closed, _database.Status);
|
||||
TestOpen();
|
||||
|
@@ -48,12 +48,12 @@ namespace ModernKeePassApp.Test.Mock
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool Save()
|
||||
public void Save()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool Save(StorageFile file)
|
||||
public void Save(StorageFile file)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user