2018-07-09 19:57:08 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using Claunia.PropertyList;
|
2017-03-16 23:37:42 +01:00
|
|
|
|
using Xunit;
|
2016-05-25 00:04:46 +02:00
|
|
|
|
|
|
|
|
|
|
namespace plistcil.test
|
|
|
|
|
|
{
|
|
|
|
|
|
public class PropertyListParserTests
|
|
|
|
|
|
{
|
2018-07-09 19:57:08 +01:00
|
|
|
|
static void ParseEmptyStreamTestDelegate()
|
2017-02-22 21:25:31 +00:00
|
|
|
|
{
|
2021-04-30 13:06:04 +01:00
|
|
|
|
using var stream = new MemoryStream();
|
|
|
|
|
|
|
|
|
|
|
|
PropertyListParser.Parse(stream);
|
2017-02-22 21:25:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2018-07-09 19:57:08 +01:00
|
|
|
|
[Fact]
|
2021-04-30 13:06:04 +01:00
|
|
|
|
public static void ParseEmptyStreamTest() =>
|
|
|
|
|
|
Assert.Throws<PropertyListFormatException>(ParseEmptyStreamTestDelegate);
|
2016-05-25 00:04:46 +02:00
|
|
|
|
}
|
2018-07-09 19:57:08 +01:00
|
|
|
|
}
|