예제 #1
0
        public void VerifyGetNewestTransactionReturnsNewestTransaction()
        {
            var level0transaction = new EsentTransaction(this.session, "test", null);
            var innerTransaction = new EsentTransaction(this.session, "test", level0transaction);
            var innermostTransaction = new EsentTransaction(this.session, "test", innerTransaction);

            Assert.AreEqual(innermostTransaction, level0transaction.GetNewestTransaction());
        }
예제 #2
0
 public void VerifyGetNewestTransactionReturnsCurrentTransactionIfNoSubtransactions()
 {
     var transaction = new EsentTransaction(this.session, "test", null);
     Assert.AreEqual(transaction, transaction.GetNewestTransaction());
 }