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

20 lines
487 B
C#
Raw Normal View History

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