dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/tests/System.Xml TestXmlException.cs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/tests/System.Xml TestXmlException.cs,1.3,1.4
Date: Mon, 14 Apr 2003 21:48:07 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/tests/System.Xml
In directory subversions:/tmp/cvs-serv6765/tests/System.Xml

Modified Files:
        TestXmlException.cs 
Log Message:


Mark the contents of "System.Resources" as non-ECMA and introduce
a cut-down resource API for use in ECMA_COMPAT mode in the other assemblies.


Index: TestXmlException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/tests/System.Xml/TestXmlException.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** TestXmlException.cs 20 Nov 2002 02:14:16 -0000      1.3
--- TestXmlException.cs 15 Apr 2003 01:48:05 -0000      1.4
***************
*** 29,34 ****
  public class TestXmlException : TestCase
  {
-       private static ResourceManager xmlR;
- 
        // Constructor.
        public TestXmlException(String name)
--- 29,32 ----
***************
*** 41,47 ****
        protected override void Setup()
                        {
-                               xmlR = 
-                                       new ResourceManager("System.Xml",
-                                                       
Type.GetType("System.Xml.XmlException").Assembly);
                        }
  
--- 39,42 ----
***************
*** 52,60 ****
                        }
        
-       //Resource access method
-       private String _(String s) {
-               return xmlR.GetString(s,null);
-       }
- 
        //Methods
        public void TestXmlExceptionEmptyConstructor()
--- 47,50 ----
***************
*** 62,66 ****
                XmlException x = new XmlException();
  
!               AssertEquals(x.Message,_("Xml_Default"));
        }
  
--- 52,56 ----
                XmlException x = new XmlException();
  
!               AssertNotNull(x.Message);
        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]