2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.XML / Test / System.Xml / nist_dom / fundamental / Text / Text.cs
index f741a03d8f5349db46e1e35fb785c38ecacff6ad..1869035345470a5f43f59e85844117f90feee7c3 100755 (executable)
@@ -420,7 +420,7 @@ namespace nist_dom.fundamental
             System.Xml.XmlText oldTextNode = null;
             System.Xml.XmlText newTextNode = null;
             System.Xml.XmlNode testNode = null;
-            string expectedValue = util.INDEX_SIZE_ERR;
+            string expectedValue = "System.ArgumentOutOfRangeException";//util.INDEX_SIZE_ERR;
 
             testResults results = new testResults("Core0007T");
             try
@@ -444,7 +444,7 @@ namespace nist_dom.fundamental
                 }
                 catch(System.Exception ex) 
                 {
-                    computedValue = ex.Message; 
+                    computedValue = ex.GetType ().FullName; 
                 }
             }
             catch(System.Exception ex)
@@ -541,12 +541,13 @@ namespace nist_dom.fundamental
         //----------------------------------------------------------------------------
 
         [Test]
+       [Category ("NotDotNet")] // MS DOM is buggy
        public void core0009T()
         {
             string computedValue = "";
             System.Xml.XmlNode testNode = null;
             System.Xml.XmlText readOnlyText = null;
-            string expectedValue = util.NO_MODIFICATION_ALLOWED_ERR;
+            string expectedValue = "System.ArgumentException";//util.NO_MODIFICATION_ALLOWED_ERR;
 
             testResults results = new testResults("Core0009T");
             try
@@ -565,9 +566,9 @@ namespace nist_dom.fundamental
                 {
                     readOnlyText.SplitText(5);
                 }
-                catch(System.Exception ex) 
+                catch(ArgumentException ex) 
                 {
-                    computedValue = ex.Message; 
+                    computedValue = ex.GetType ().FullName; 
                 }
 
             }