-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better parsing of whitespace characters for Content Lines in SimpleDe…
…serializer #337
- Loading branch information
Rian Stockbower
committed
Nov 20, 2017
1 parent
c588b39
commit 147a4dc
Showing
5 changed files
with
38 additions
and
2 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 |
---|---|---|
|
@@ -410,5 +410,37 @@ public void JournalStatusAllCaps() | |
var status = calendar.Journals.First().Status; | ||
Assert.IsTrue(string.Equals(JournalStatus.Final, status, JournalStatus.Comparison)); | ||
} | ||
|
||
[Test] | ||
public void UnicodeDescription() | ||
{ | ||
const string ics = @"BEGIN:VEVENT | ||
DTSTAMP:20171120T124856Z | ||
DTSTART;TZID=Europe/Helsinki:20160707T110000 | ||
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 | ||
t some text\, some text\, text.\;\n\nsome te | ||
xt some text some text. | ||
ORGANIZER;X-CONFLUENCE-USER-KEY=ff801df01547101c6720006;CN=Some | ||
user;CUTYPE=INDIVIDUAL:mailto:[email protected] | ||
CREATED:20160627T123608Z | ||
LAST-MODIFIED:20160627T123608Z | ||
ATTENDEE;X-CONFLUENCE-USER-KEY=ff8080ef1df01547101c6720006;CN=Some | ||
text;CUTYPE=INDIVIDUAL:mailto:[email protected] | ||
SEQUENCE:1 | ||
X-CONFLUENCE-SUBCALENDAR-TYPE:other | ||
TRANSP:TRANSPARENT | ||
STATUS:CONFIRMED | ||
END:VEVENT"; | ||
var deserializedEvent = Calendar.Load<CalendarEvent>(ics).Single(); | ||
|
||
Assert.IsTrue(deserializedEvent.Description.Contains("\t")); | ||
Assert.IsTrue(deserializedEvent.Description.Contains("")); | ||
Assert.IsTrue(deserializedEvent.Description.Contains("")); | ||
} | ||
} | ||
} |
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
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
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
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