Mark tests as not working under TARGET_JVM
[mono.git] / mcs / class / System.Web / Test / mainsoft / MainsoftWebApp / utils / GHTListControlBase.cs
index b5b3153bb0fe9a00053f1123ce6e889dcfd96453..fc381cec8763de601fd2357e8ac5d31b05d8e691 100644 (file)
@@ -167,6 +167,7 @@ namespace GHTTests
 
                        #endregion
                        #region "Non existing table in a dataset"
+#if !NET_2_0
                        GHTListContorlSubTestBegin(ctrlType, "Non existing table in a dataset");
                        
                        try
@@ -184,6 +185,7 @@ namespace GHTTests
                        {
                                GHTSubTestUnexpectedExceptionCaught(ex);
                        }
+#endif
                        #endregion
                        #region "DataSource is not a dataset - set"
                        GHTListContorlSubTestBegin(ctrlType, "DataSource is not a dataset");
@@ -249,6 +251,12 @@ namespace GHTTests
                                m_lcToTest.DataBind();
                                GHTSubTestExpectedExceptionNotCaught("ArgumentException");
                        }
+#if NET_2_0
+                       catch (InvalidOperationException ex)
+                       {
+                               GHTSubTestExpectedExceptionCaught(ex);
+                       }
+#endif
                        catch (ArgumentException ex)
                        {
                                GHTSubTestExpectedExceptionCaught(ex);