System.Xml.Tests.TCFullEndElement.TCWriteValue.TCWriteRaw.writeRaw_13 C# (CSharp) Méthode

writeRaw_13() public méthode

public writeRaw_13 ( ) : int
Résultat int
                public int writeRaw_13()
                {
                    using (XmlWriter w = CreateWriter())
                    {
                        try
                        {
                            w.WriteStartElement("Root");
                            w.WriteRaw("\uD812");
                        }
                        catch (ArgumentException e)
                        {
                            CError.WriteLineIgnore(e.ToString());
                            CError.Compare(w.WriteState, WriteState.Error, "WriteState should be Error");
                            return TEST_PASS;
                        }
                    }
                    CError.WriteLine("Did not throw exception");
                    return TEST_FAIL;
                }