moved logic of StorageSelectionActivity to testable base class
added tests for StorageSelectionActivity, fixed bugs if database is read-only, no edit buttons are displayed
This commit is contained in:
@@ -134,11 +134,18 @@ namespace Kp2aUnitTests
|
||||
return new ProgressDialogStub();
|
||||
}
|
||||
|
||||
public IFileStorage GetFileStorage(IOConnectionInfo iocInfo)
|
||||
public virtual IFileStorage GetFileStorage(IOConnectionInfo iocInfo)
|
||||
{
|
||||
return FileStorage;
|
||||
}
|
||||
|
||||
public virtual IFileStorage GetFileStorage(IOConnectionInfo iocInfo, bool allowCache)
|
||||
{
|
||||
if (FileStorage is CachingFileStorage)
|
||||
throw new Exception("bad test class");
|
||||
return FileStorage;
|
||||
}
|
||||
|
||||
|
||||
public bool TriggerReloadCalled;
|
||||
private TestFileStorage _testFileStorage;
|
||||
|
||||
Reference in New Issue
Block a user