Beispiel #1
0
        public void DisposeTest()
        {
            try
            {
                DatabaseWrapper.Dispose();
                Assert.IsFalse(DatabaseWrapper.IsOpen);

                // if DB is closed (aka Disposed), reopen for other tests
                if (!DatabaseWrapper.IsOpen)
                {
                    InitializeAsync().Wait();
                }
            }
            catch
            {
                Assert.Fail();
            }
        }
Beispiel #2
0
 public void CleanUpDb()
 {
     DatabaseWrapper.Dispose();
     DatabaseWrapper.Destroy(TestDbLocation);
 }