System.Xml.Tests.TCFullEndElement.TCWriteValue.TCLookUpPrefix.lookupPrefix_3 C# (CSharp) Method

lookupPrefix_3() public method

public lookupPrefix_3 ( ) : int
return int
                public int lookupPrefix_3()
                {
                    using (XmlWriter w = CreateWriter())
                    {
                        w.WriteStartElement("Root");
                        w.WriteAttributeString("a", "foo", "b");
                        string s = w.LookupPrefix("foo");
                        string exp = "p1";
                        CError.Compare(s, exp, "Error");
                    }
                    return TEST_PASS;
                }