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