示例#1
0
        public void ShouldRollbackToSavePointName()
        {
            var savePointName = "MySavePointName";

            using var target = new SqlTransactionAdapter(transaction.Object);
            target.Rollback(savePointName);

            transaction.Verify(o => o.Rollback(savePointName));
        }
示例#2
0
 public void ThrowAnExceptionWhenSavePointNameIsWhiteSpaceOnRollback()
 {
     using var target = new SqlTransactionAdapter(transaction.Object);
     Assert.Throws <ArgumentNullException>(() => target.Rollback("      "));
 }