Files
plist-cil/plist-cil.test/PropertyListParserTests.cs

24 lines
533 B
C#
Raw Normal View History

using Claunia.PropertyList;
2017-03-16 23:37:42 +01:00
using Xunit;
using System.IO;
namespace plistcil.test
{
public class PropertyListParserTests
{
2017-03-16 23:37:42 +01:00
[Fact]
public static void ParseEmptyStreamTest()
{
2017-03-16 23:37:42 +01:00
Assert.Throws<PropertyListFormatException>(() => ParseEmptyStreamTestDelegate());
}
static void ParseEmptyStreamTestDelegate()
{
using (MemoryStream stream = new MemoryStream())
{
PropertyListParser.Parse(stream);
}
}
}
}