public void RecursiveSeekerTest3() { var calStr = @"BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Example Corp.//CalDAV Client//EN BEGIN:VTIMEZONE LAST-MODIFIED:20040110T032845Z TZID:US/Eastern BEGIN:DAYLIGHT DTSTART:20000404T020000 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4 TZNAME:EDT TZOFFSETFROM:-0500 TZOFFSETTO:-0400 END:DAYLIGHT BEGIN:STANDARD DTSTART:20001026T020000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 TZNAME:EST TZOFFSETFROM:-0400 TZOFFSETTO:-0500 END:STANDARD END:VTIMEZONE BEGIN:VEVENT ATTENDEE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:[email protected] DTSTAMP:20060206T001220Z DTSTART;TZID=US/Eastern:20060104T100000 DURATION:PT1H LAST-MODIFIED:20060206T001330Z ORGANIZER:mailto:[email protected] SEQUENCE:1 STATUS:TENTATIVE SUMMARY:Event #3 UID:[email protected] X-ABC-GUID:[email protected] END:VEVENT END:VCALENDAR"; var xmlStr = @"<C:comp-filter name=""VCALENDAR"" xmlns:C=""urn:ietf:params:xml:ns:caldav""> <C:comp-filter name=""VTODO""> <C:prop-filter name=""UID""> <C:text-match collation=""i;octet"" >[email protected]</C:text-match> </C:prop-filter> </C:comp-filter> </C:comp-filter>"; var calendar = new VCalendar(calStr); var xmlTree = XmlTreeStructure.Parse(xmlStr); IXMLTreeStructure tree; ICalendarComponent comp; var result = calendar.ComponentSeeker(xmlTree, out tree, out comp); Assert.False(result); /*Assert.Equal("VEVENT", comp.Name); * Assert.Equal("VEVENT", tree.Attributes["name"]);*/ }