-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #517 from rianjs/ArrayParameterBug
Array parameter bug
- Loading branch information
Showing
2 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,8 +183,6 @@ public void TimeZoneSerialize() | |
var serializer = new CalendarSerializer(); | ||
var serializedCalendar = serializer.SerializeToString(cal); | ||
|
||
Console.Write(serializedCalendar); | ||
|
||
var vTimezone = InspectSerializedSection(serializedCalendar, "VTIMEZONE", new[] { "TZID:" + tz.TzId }); | ||
var o = tzi.BaseUtcOffset.ToString("hhmm", CultureInfo.InvariantCulture); | ||
|
||
|
@@ -261,7 +259,6 @@ public void EventPropertiesSerialized() | |
var serializer = new CalendarSerializer(); | ||
var serializedCalendar = serializer.SerializeToString(cal); | ||
|
||
Console.Write(serializedCalendar); | ||
Assert.IsTrue(serializedCalendar.StartsWith("BEGIN:VCALENDAR")); | ||
Assert.IsTrue(serializedCalendar.EndsWith("END:VCALENDAR" + SerializationConstants.LineBreak)); | ||
|
||
|
@@ -317,12 +314,13 @@ public void AttendeesSerialized() | |
evt.Organizer = new Organizer(org); | ||
|
||
evt.Attendees.AddRange(_attendees); | ||
|
||
// However a bug, when a participation value is changed, ultimately re-serialises as an array (PARTSTAT=ACCEPTED,DECLINED) | ||
evt.Attendees[0].ParticipationStatus = EventParticipationStatus.Declined; | ||
|
||
var serializer = new CalendarSerializer(); | ||
var serializedCalendar = serializer.SerializeToString(cal); | ||
|
||
Console.Write(serializedCalendar); | ||
|
||
var vEvt = InspectSerializedSection(serializedCalendar, "VEVENT", new[] { "ORGANIZER:" + org }); | ||
|
||
foreach (var a in evt.Attendees) | ||
|
@@ -422,11 +420,11 @@ public void UnicodeDescription() | |
DTEND;TZID=Europe/Helsinki:20160707T140000 | ||
SUMMARY:Some summary | ||
UID:[email protected] | ||
DESCRIPTION:Key points:\n Some text (text, | ||
, text\, text\, TP) some text\;\n some tex | ||
t Some text (Text\, Text)\;\n Some tex | ||
DESCRIPTION:Key points:\n� Some text (text, | ||
, text\, text\, TP) some text\;\n� some tex | ||
t Some text (Text\, Text)\;\n� Some tex | ||
t some text\, some text\, text.\;\n\nsome te | ||
xt some text some text. | ||
xt some tex�t some text. | ||
ORGANIZER;X-CONFLUENCE-USER-KEY=ff801df01547101c6720006;CN=Some | ||
user;CUTYPE=INDIVIDUAL:mailto:[email protected] | ||
CREATED:20160627T123608Z | ||
|
@@ -441,8 +439,8 @@ public void UnicodeDescription() | |
var deserializedEvent = Calendar.Load<CalendarEvent>(ics).Single(); | ||
|
||
Assert.IsTrue(deserializedEvent.Description.Contains("\t")); | ||
Assert.IsTrue(deserializedEvent.Description.Contains("")); | ||
Assert.IsTrue(deserializedEvent.Description.Contains("")); | ||
Assert.IsTrue(deserializedEvent.Description.Contains("�")); | ||
Assert.IsTrue(deserializedEvent.Description.Contains("�")); | ||
} | ||
|
||
[Test] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters