Example #1
0
 public void TestDeleteTwice()
 {
     Db.Delete();
     Db.Invoking(d => d.Delete()).ShouldThrow <InvalidOperationException>();
 }
Example #2
0
 public void TestCloseThenDeleteDatabase()
 {
     Db.Dispose();
     Db.Invoking(DeleteDB).ShouldThrow <InvalidOperationException>();
 }
Example #3
0
 public void TestCloseThenGetDatabasePath()
 {
     Db.Close();
     Db.Path.Should().BeNull("because a non-open database has no path");
 }
Example #4
0
 public void TestCloseTwice()
 {
     Db.Close();
     Db.Close();
 }
Example #5
0
 public void TestClose()
 {
     Db.Close();
 }
Example #6
0
 public void TestGetNonExistingDocWithID()
 {
     Db.GetDocument("non-exist").Should().BeNull("because it doesn't exist");
 }