public void ShouldRollbackToSavePointName() { var savePointName = "MySavePointName"; using var target = new SqlTransactionAdapter(transaction.Object); target.Rollback(savePointName); transaction.Verify(o => o.Rollback(savePointName)); }
public void ThrowAnExceptionWhenSavePointNameIsWhiteSpaceOnRollback() { using var target = new SqlTransactionAdapter(transaction.Object); Assert.Throws <ArgumentNullException>(() => target.Rollback(" ")); }