System.Xml.Tests.TCFullEndElement.TCWhiteSpace.whitespace_4 C# (CSharp) Méthode

whitespace_4() public méthode

public whitespace_4 ( ) : int
Résultat int
            public int whitespace_4()
            {
                using (XmlWriter w = CreateWriter())
                {
                    string temp;
                    if (CurVariation.Param.ToString() == "null")
                        temp = null;
                    else
                        temp = String.Empty;
                    w.WriteStartElement("Root");

                    w.WriteWhitespace(temp);
                    w.WriteEndElement();
                }
                return CompareReader("<Root></Root>") ? TEST_PASS : TEST_FAIL;
            }