コード例 #1
0
 public void TestEmptyDB()
 {
     using (var tmpDir = new TempDirectory())
         using (var db = new Database(tmpDir.Path, true))
             Assert.IsNull(db.Get(0));
 }
コード例 #2
0
 public void TestRetrieveNonExistingElement()
 {
     using (var tmpDir = new TempDirectory())
         using (var db = new Database(tmpDir.Path, true))
             Assert.IsNull(db.Get(-1));
 }