Commit Graph

30 Commits

Author SHA1 Message Date
Frederik Carlier
c6a5be0f62 Support netcoreapp2.0 and netstandard2.0 2018-05-22 14:45:32 +02:00
67b73b4319 Ignore line endings on test. 2017-05-20 02:53:39 +01:00
114fd9b2fc .NET has some kind of bug with DST. On winter time, TestXml() works. On summer time, TestXml() fails by the amount modified by time savings. Workaround it. 2017-05-20 02:34:00 +01:00
673825548f Consider all ASCIIPropertyLists as UTF8 on opening, instead of considering them ASCII. Fixes #15. 2017-05-20 02:27:53 +01:00
Frederik Carlier
d9670db803 Migrate to xUnit 2017-03-16 23:37:42 +01:00
e071148e2b Updated code to correclty support and compile using .NET Core RC4 (and Visual Studio 2017). May break compatibility with VS2015. Older .NET Core will not be supported. Fixes #13
Signed-off-by: Natalia Portillo <claunia@claunia.com>
2017-02-22 21:25:31 +00:00
64dc55d047 Merge pull request #8 from quamotion/fixes/xml-formatting
XML format compatibility with Apple
2016-06-24 22:04:12 +01:00
Frederik Carlier
03c95ce192 Minor fixes in how property lists are serialized to XML, to maintain compatibility with the Apple format:
- NSNumber of "0/real" is serialized as "0.0"
- Data values are not indented
- Newline at the end of the file
- Always use \r as newline
2016-06-22 13:13:55 +02:00
Frederik Carlier
c2f15567c7 Fix the datetime test (use the correct UTC value) 2016-06-22 13:11:52 +02:00
Frederik Carlier
dfee77b724 When converting dates to strings, always convert them to UTC first. 2016-06-22 13:11:52 +02:00
Frederik Carlier
1ff1bcde3b Parse dates as UTC dates. 2016-06-22 13:11:52 +02:00
10e92e31db Merge pull request #10 from quamotion/fixes/0-length-stream
Fix issues with 0-length streams
2016-06-22 05:10:40 +01:00
18e9e294e2 Merge pull request #7 from quamotion/fixes/nsarray-recursion
Fix recursive call in NSArray.GetEnumerator
2016-06-22 05:10:27 +01:00
Frederik Carlier
66ac10e4be Make sure to always specify CultureInfo when parsing numbers. 2016-06-03 15:39:54 +02:00
Frederik Carlier
12418b7284 Fix issue when handling 0-length streams. 2016-05-25 00:37:44 +02:00
Frederik Carlier
3c4e3257f2 NSNumber: Keep track of the original number type when parsing from XML 2016-05-24 23:43:00 +02:00
Frederik Carlier
e432c71e26 Fix recursive call in NSArray.GetEnumerator 2016-05-24 22:55:24 +02:00
Frederik Carlier
ec6d00342f Update unit tests after updates to work on .NET Core 2016-05-22 19:12:44 +02:00
Frederik Carlier
2bacfb7037 Update the parsing code to match to work with the new NSArray class 2016-05-22 16:37:44 +02:00
Frederik Carlier
df27f9d5ac NSArray: Implement IList<NSObject> 2016-05-22 16:05:33 +02:00
399a043c62 * plist-cil.sln:
* plist-cil/plist-cil.csproj:
	* plist-cil.test/plist-cil.test.csproj:
	* plist-cil/Properties/AssemblyInfo.cs:
	  Bump to 1.14 (upstream r114).

	* plist-cil/PropertyListParser.cs:
	* plist-cil/ASCIIPropertyListParser.cs:
	  Sync BOM skipping code with upstream.

	* plist-cil/BinaryPropertyListParser.cs:
	  Sync code with upstream.
	Added UTF-8 string decoding on binary property lists.
2015-02-24 22:53:31 +00:00
b03717e877 Remove unused variables and disable warnings that we know are
innocuous.
2015-02-20 01:34:22 +00:00
79ed8b39b0 * LICENSE:
* plist-cil/plist-cil.csproj:
	  Added MIT License file.

	* SvnInfo.txt:
	* plist-cil.sln:
	  Added file to keep track of mainstream Subversion
	  repository.

	* plist-cil.test/plist-cil.test.csproj:
2015-02-20 00:56:21 +00:00
5ea7c588af Different API between JUnit and NUnit made TestIssue49() fail.
Solved.
2015-02-19 23:45:44 +00:00
99d374fef2 Should use a serializable object type. 2015-02-19 20:37:49 +00:00
c244212d25 Convert unix date to .net dates.
Array.Equals() does not compare array internals but object
	reference, implement substitute.
	String.Substring() has a different API than Java, correct.
2015-02-19 20:26:05 +00:00
0189f3d859 Implement IssueTest. 2015-02-19 19:35:05 +00:00
4e037a2170 Implement ParseTest 2015-02-19 19:28:42 +00:00
3f95dd4569 Organize test-files in a folder 2015-02-19 19:01:02 +00:00
4c747653cf Add test skeleton. 2015-02-19 18:59:47 +00:00