[Mono-bugs] [Bug 666872] New: XElement.Changed event is not triggered during an XElement Add

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 25 04:58:45 EST 2011



           Summary: XElement.Changed event is not triggered during an
                    XElement Add
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: cambell at princes.co.nz
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:
Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)

The code below fails:

        public void Add_ToRootNode_ChangeTriggers ()
            var inputXml = "<root><a><b /></a></root>";
            var reader = XmlReader.Create (new StringReader (inputXml), new
XmlReaderSettings ());
            XDocument doc = XDocument.Load (reader);
            var eventHandler = new EventHandler();
            doc.Root.Changed += eventHandler.OnChanged;

            var newElement = XElement.Parse("<c/>");


            Assert.IsTrue(eventHandler.HasChanged, "OnChanged not triggered");

Reproducible: Always

Steps to Reproduce:
See Details

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list