mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
Fix issue when handling 0-length streams.
This commit is contained in:
20
plist-cil.test/PropertyListParserTests.cs
Normal file
20
plist-cil.test/PropertyListParserTests.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Claunia.PropertyList;
|
||||
using NUnit.Framework;
|
||||
using System.IO;
|
||||
|
||||
namespace plistcil.test
|
||||
{
|
||||
[TestFixture]
|
||||
public class PropertyListParserTests
|
||||
{
|
||||
[Test]
|
||||
[ExpectedException(typeof(PropertyListFormatException))]
|
||||
public static void ParseEmptyStreamTest()
|
||||
{
|
||||
using (MemoryStream stream = new MemoryStream())
|
||||
{
|
||||
PropertyListParser.Parse(stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user