[System*] Throw a PlatformNotSupported exception when using the managed networking...
[mono.git] / mcs / class / System.Data / Test / System.Data.Common / DbDataAdapterTest.cs
index 401ed4bc7ff9a8f1f4b60b2f4350e4fd1a32f7dc..a8974949973e3fc8afcd95fc9b88c3a91b5f588e 100644 (file)
@@ -96,10 +96,14 @@ namespace MonoTests.System.Data.Common
                        try {
                                da.AddToBatch (new SqlCommand ());
                                Assert.Fail ("#1");
+#if FEATURE_NO_BSD_SOCKETS
+                       } catch (PlatformNotSupportedException) {
+#else
                        } catch (NotSupportedException ex) {
                                Assert.AreEqual (typeof (NotSupportedException), ex.GetType (), "#2");
                                Assert.IsNull (ex.InnerException, "#3");
                                Assert.IsNotNull (ex.Message, "#4");
+#endif
                        }
                }
 
@@ -262,31 +266,6 @@ sqliteDataAdapter.Update (dataSet, "Primus");
 
                class MyAdapter : DbDataAdapter
                {
-#if ONLY_1_1
-                       protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command,
-                                                                                    StatementType statementType,
-                                                                                    DataTableMapping tableMapping)
-                       {
-                               throw new NotImplementedException ();
-                       }
-
-                       protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command,
-                                                                                      StatementType statementType,
-                                                                                      DataTableMapping tableMapping)
-                       {
-                               throw new NotImplementedException ();
-                       }
-
-                       protected override void OnRowUpdated (RowUpdatedEventArgs value)
-                       {
-                               throw new NotImplementedException ();
-                       }
-
-                       protected override void OnRowUpdating (RowUpdatingEventArgs value)
-                       {
-                               throw new NotImplementedException ();
-                       }
-#endif
 
                        public new int AddToBatch (IDbCommand command)
                        {