Fix issue when handling 0-length streams.

This commit is contained in:
Frederik Carlier
2016-05-25 00:04:46 +02:00
parent 6571783fab
commit 12418b7284
3 changed files with 25 additions and 9 deletions

View 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);
}
}
}
}