2003-10-12 Todd Berman <tberman@gentoo.org>
authorTodd Berman <tberman@mono-cvs.ximian.com>
Sun, 12 Oct 2003 21:52:38 +0000 (21:52 -0000)
committerTodd Berman <tberman@mono-cvs.ximian.com>
Sun, 12 Oct 2003 21:52:38 +0000 (21:52 -0000)
        * QualifiedName.cs (FromString): fix from nunit tests

svn path=/trunk/mcs/; revision=18931

mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Xml/ChangeLog
mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Xml/QualifiedName.cs

index 601287eff495eb96e4a0ce463043e4183e4797f0..715e543e04fccdccd9691185c640c0a6ca1bdc15 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-12  Todd Berman <tberman@gentoo.org>
+
+       * QualifiedName.cs (FromString): fix from nunit tests
+
 2003-10-08  Todd Berman <tberman@gentoo.org>
 
        * QualifiedName.cs: Initial implementation of FromString.
index 6fc36e15367589f3cd6a1d641a29297cef3d92dd..904dd08d31e91413ace53d61fbcaef745a9b3e5b 100644 (file)
@@ -31,9 +31,10 @@ namespace Microsoft.Web.Services.Xml
                        if(value.IndexOf(':') > 0) {
                                string[] strings = value.Split(':');
 
-                               if(strings.Length != 2 || strings[0].Length == 0 || strings[1].Length == 1) {
+                               if(strings.Length != 2 || strings[0].Length == 0 || strings[1].Length == 0) {
                                        throw new FormatException ("xml_ImproperQName");
                                }
+
                                string nspace = node.GetNamespaceOfPrefix (strings[0]);
                                if(nspace.Length == 0) {
                                        throw new FormatException ("xml_CouldNotResolveNSPrefix");