示例#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");
 }