[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source PgBaseTest.cs,1.1
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos G. Á. <car...@us...> - 2005-04-04 18:17:35
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19405 Modified Files: PgBaseTest.cs PgCommandTest.cs PgGeometicTypesTest.cs Log Message: 2005-04-03 Carlos Guzman Alvarez <car...@te...> * Changes to improve exception handling. Index: PgBaseTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgBaseTest.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** PgBaseTest.cs 31 Jan 2005 14:08:48 -0000 1.13 --- PgBaseTest.cs 4 Apr 2005 18:17:20 -0000 1.14 *************** *** 323,330 **** transaction.Commit(); } ! catch (PgException ex) { transaction.Rollback(); ! throw ex; } finally --- 323,330 ---- transaction.Commit(); } ! catch (PgException) { transaction.Rollback(); ! throw; } finally *************** *** 368,375 **** transaction.Commit(); } ! catch (PgException ex) { transaction.Rollback(); ! throw ex; } finally --- 368,375 ---- transaction.Commit(); } ! catch (PgException) { transaction.Rollback(); ! throw; } finally Index: PgGeometicTypesTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgGeometicTypesTest.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PgGeometicTypesTest.cs 9 Feb 2004 14:21:31 -0000 1.5 --- PgGeometicTypesTest.cs 4 Apr 2005 18:17:21 -0000 1.6 *************** *** 44,50 **** Assertion.AssertEquals("Invalid Y coord in point", 60, point.Y); } ! catch (Exception ex) { ! throw ex; } finally --- 44,50 ---- Assertion.AssertEquals("Invalid Y coord in point", 60, point.Y); } ! catch (Exception) { ! throw; } finally *************** *** 72,78 **** Assertion.AssertEquals("Invalid Y coord in Upper Right corner", 70, box.UpperRight.Y); } ! catch (Exception ex) { ! throw ex; } finally --- 72,78 ---- Assertion.AssertEquals("Invalid Y coord in Upper Right corner", 70, box.UpperRight.Y); } ! catch (Exception) { ! throw; } finally *************** *** 98,104 **** Assertion.AssertEquals("Invalid RADIUS coord in circle", 30, circle.Radius); } ! catch (Exception ex) { ! throw ex; } finally --- 98,104 ---- Assertion.AssertEquals("Invalid RADIUS coord in circle", 30, circle.Radius); } ! catch (Exception) { ! throw; } finally *************** *** 126,132 **** Assertion.AssertEquals("Invalid Y coord in end point", 0, lseg.EndPoint.Y); } ! catch (Exception ex) { ! throw ex; } finally --- 126,132 ---- Assertion.AssertEquals("Invalid Y coord in end point", 0, lseg.EndPoint.Y); } ! catch (Exception) { ! throw; } finally *************** *** 154,160 **** Assertion.AssertEquals("Invalid Y coord in path point 1", 0, path.Points[1].Y); } ! catch (Exception ex) { ! throw ex; } finally --- 154,160 ---- Assertion.AssertEquals("Invalid Y coord in path point 1", 0, path.Points[1].Y); } ! catch (Exception) { ! throw; } finally *************** *** 182,188 **** Assertion.AssertEquals("Invalid Y coord in polygon point 1", 0, polygon.Points[1].Y); } ! catch (Exception ex) { ! throw ex; } finally --- 182,188 ---- Assertion.AssertEquals("Invalid Y coord in polygon point 1", 0, polygon.Points[1].Y); } ! catch (Exception) { ! throw; } finally Index: PgCommandTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgCommandTest.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PgCommandTest.cs 9 Feb 2004 14:21:31 -0000 1.4 --- PgCommandTest.cs 4 Apr 2005 18:17:21 -0000 1.5 *************** *** 58,65 **** ExecuteReaderTest(); } ! catch (PgException ex) { transaction.Rollback(); ! throw ex; } finally --- 58,65 ---- ExecuteReaderTest(); } ! catch (PgException) { transaction.Rollback(); ! throw; } finally |