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