Revert async SQLite provider calls back to sync

This commit is contained in:
John Lewin 2015-10-06 18:47:35 -07:00
parent 6532f15b35
commit efb8505868
4 changed files with 31 additions and 39 deletions

View file

@ -76,7 +76,7 @@ namespace MatterControl.Tests
string collectionName = "Collection1";
Assert.IsTrue(!NamedCollectionExists(collectionName)); // assert that the record does not exist in the DB
Assert.IsTrue(dataReloaded == false);
testProvider.AddCollectionToLibraryAsync(collectionName).Wait();
testProvider.AddCollectionToLibrary(collectionName);
Assert.IsTrue(testProvider.CollectionCount == 1);
Assert.IsTrue(dataReloaded == true);
Assert.IsTrue(NamedCollectionExists(collectionName)); // assert that the record does exist in the DB
@ -108,7 +108,7 @@ namespace MatterControl.Tests
// remove collection gets rid of it
dataReloaded = false;
Assert.IsTrue(dataReloaded == false);
testProvider.RemoveCollectionAsync(0).Wait();
testProvider.RemoveCollection(0);
Assert.IsTrue(dataReloaded == true);
Assert.IsTrue(testProvider.CollectionCount == 0);
Assert.IsTrue(!NamedCollectionExists(collectionName)); // assert that the record does not exist in the DB