mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
24 lines
533 B
C#
24 lines
533 B
C#
using Claunia.PropertyList;
|
|
using Xunit;
|
|
using System.IO;
|
|
|
|
namespace plistcil.test
|
|
{
|
|
public class PropertyListParserTests
|
|
{
|
|
[Fact]
|
|
public static void ParseEmptyStreamTest()
|
|
{
|
|
Assert.Throws<PropertyListFormatException>(() => ParseEmptyStreamTestDelegate());
|
|
}
|
|
|
|
static void ParseEmptyStreamTestDelegate()
|
|
{
|
|
using (MemoryStream stream = new MemoryStream())
|
|
{
|
|
PropertyListParser.Parse(stream);
|
|
}
|
|
}
|
|
}
|
|
}
|