System.Xml.Tests.TCFullEndElement.TCWriteValue.TCWriteBase64.Base64_7 C# (CSharp) Méthode

Base64_7() public méthode

public Base64_7 ( ) : int
Résultat int
                public int Base64_7()
                {
                    using (XmlWriter w = CreateWriter())
                    {
                        try
                        {
                            w.WriteStartElement("root");
                            w.WriteBase64(null, 0, 0);
                        }
                        catch (ArgumentNullException)
                        {
                            CError.Compare(w.WriteState, WriteState.Error, "WriteState should be Error");
                            return TEST_PASS;
                        }
                    }
                    CError.WriteLine("Did not throw exception");
                    return TEST_FAIL;
                }