System.Xml.Tests.TCFullEndElement.TCWriteValue.TCLookUpPrefix.lookupPrefix_5 C# (CSharp) Méthode

lookupPrefix_5() public méthode

public lookupPrefix_5 ( ) : int
Résultat int
                public int lookupPrefix_5()
                {
                    using (XmlWriter w = CreateWriter())
                    {
                        w.WriteStartElement("Root");
                        w.WriteAttributeString("ns1", "attr1", "foo", "val1");
                        string s = w.LookupPrefix("foo");
                        CError.Compare(s, "ns1", "Error");
                    }
                    return TEST_PASS;
                }