Author: anagappan
Date: 2007-03-14 01:03:51 -0500 (Wed, 14 Mar 2007)
New Revision: 74234
Modified:
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs
Log:
2007-03-14 Nagappan A <[EMAIL PROTECTED]>
* SqlCommandTest.cs (ExecuteScalarTest, ExecuteReaderTest)
(ExecuteReaderTest, PrepareTest, TransactionTest): Modified
expected exception to NullReferenceException as it has to be
thrown in 2.0 profile.
Modified:
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
===================================================================
---
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
2007-03-14 05:59:52 UTC (rev 74233)
+++
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
2007-03-14 06:03:51 UTC (rev 74234)
@@ -1,3 +1,10 @@
+2007-03-14 Nagappan A <[EMAIL PROTECTED]>
+
+ * SqlCommandTest.cs (ExecuteScalarTest, ExecuteReaderTest)
+ (ExecuteReaderTest, PrepareTest, TransactionTest): Modified
+ expected exception to NullReferenceException as it has to be
+ thrown in 2.0 profile.
+
2007-03-09 Andreia Gaita <[EMAIL PROTECTED]>
* SqlCommandTest.cs: Add new test to check string parameters with
Modified:
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs
===================================================================
---
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs
2007-03-14 05:59:52 UTC (rev 74233)
+++
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs
2007-03-14 06:03:51 UTC (rev 74234)
@@ -142,8 +142,13 @@
}catch (AssertionException e) {
throw e;
}catch (Exception e) {
+#if NET_2_0
+ Assert.AreEqual (typeof
(NullReferenceException), e.GetType (),
+ "#2 Incorrect Exception : " +
e.StackTrace);
+#else
Assert.AreEqual (typeof
(InvalidOperationException), e.GetType (),
"#2 Incorrect Exception : " +
e.StackTrace);
+#endif
}
// Check the Return value for a Correct Query
@@ -256,8 +261,13 @@
}catch (AssertionException e) {
throw e;
}catch (Exception e) {
+#if NET_2_0
+ Assert.AreEqual
(typeof(NullReferenceException), e.GetType(),
+ "#2 Incorrect Exception : " + e);
+#else
Assert.AreEqual
(typeof(InvalidOperationException), e.GetType(),
"#2 Incorrect Exception : " + e);
+#endif
}
// Test Exception is thrown if Query is incorrect
@@ -366,8 +376,13 @@
}catch (AssertionException e) {
throw e;
}catch (Exception e) {
+#if NET_2_0
+ Assert.AreEqual
(typeof(NullReferenceException), e.GetType(),
+ "#1 Incorrect Exception");
+#else
Assert.AreEqual
(typeof(InvalidOperationException), e.GetType(),
"#1 Incorrect Exception");
+#endif
}
conn.Open ();
@@ -589,8 +604,13 @@
}catch (AssertionException e) {
throw e;
}catch (Exception e) {
+#if NET_2_0
+ Assert.AreEqual
(typeof(NullReferenceException), e.GetType(),
+ "Incorrect Exception : " +
e.StackTrace);
+#else
Assert.AreEqual
(typeof(InvalidOperationException), e.GetType(),
"Incorrect Exception : " +
e.StackTrace);
+#endif
}
}
@@ -664,8 +684,13 @@
cmd.ExecuteNonQuery ();
Assert.Fail ("#2 Connection cannot be
different");
}catch (Exception e) {
+#if NET_2_0
+ Assert.AreEqual
(typeof(NullReferenceException), e.GetType(),
+ "#3 Incorrect Exception : " + e);
+#else
Assert.AreEqual
(typeof(InvalidOperationException), e.GetType(),
"#3 Incorrect Exception : " + e);
+#endif
}finally {
conn1.Close ();
conn.Close ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches