public void GetError() { Database db = new Database(); try { db.Create(null); } catch (DatabaseException e) { Assert.AreEqual(HamConst.HAM_INV_PARAMETER, e.ErrorCode); } Assert.AreEqual(HamConst.HAM_INV_PARAMETER, db.GetLastError()); db.Close(); }
public void GetError() { Database db = new Database(); try { db.Create(null); } catch (DatabaseException e) { Assert.AreEqual(HamConst.HAM_INV_PARAMETER, e.ErrorCode); } Assert.AreEqual(HamConst.HAM_INV_PARAMETER, db.GetLastError()); db.Close(); }