CompareCalendars() static public méthode

static public CompareCalendars ( IICalendar iCal1, IICalendar iCal2 ) : void
iCal1 IICalendar
iCal2 IICalendar
Résultat void
Exemple #1
0
        private void CopyCalendarTest(string filename)
        {
            iCalendar iCal1 = iCalendar.LoadFromFile(@"Calendars\Serialization\" + filename);
            iCalendar iCal2 = iCal1.Copy();

            SerializationTest.CompareCalendars(iCal1, iCal2);
        }
Exemple #2
0
        public void Merge2()
        {
            iCalendar  iCal    = new iCalendar();
            IICalendar tmp_cal = iCalendar.LoadFromFile(@"Calendars\Serialization\TimeZone3.ics")[0];

            iCal.MergeWith(tmp_cal);

            tmp_cal = iCalendar.LoadFromFile(@"Calendars\Serialization\TimeZone3.ics")[0];

            // Compare the two calendars -- they should match exactly
            SerializationTest.CompareCalendars(iCal, tmp_cal);
        }
Exemple #3
0
        public void MERGE2()
        {
            iCalendar iCal    = new iCalendar();
            iCalendar tmp_cal = iCalendar.LoadFromFile(@"Calendars\General\MERGE2.ics");

            iCal.MergeWith(tmp_cal);

            tmp_cal = iCalendar.LoadFromFile(@"Calendars\General\MERGE2.ics");

            // Compare the two calendars -- they should match exactly
            SerializationTest.CompareCalendars(iCal, tmp_cal);
        }