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
|
|
|
|
|
2025-08-07 22:31:12 +01:00
|
|
|
|
namespace plistcil.test;
|
|
|
|
|
|
|
|
|
|
|
|
public class PropertyListParserTests
|
2016-05-25 00:04:46 +02:00
|
|
|
|
{
|
2025-08-07 22:31:12 +01:00
|
|
|
|
static void ParseEmptyStreamTestDelegate()
|
2016-05-25 00:04:46 +02:00
|
|
|
|
{
|
2025-08-07 22:31:12 +01:00
|
|
|
|
using var stream = new MemoryStream();
|
2017-02-22 21:25:31 +00:00
|
|
|
|
|
2025-08-07 22:31:12 +01:00
|
|
|
|
PropertyListParser.Parse(stream);
|
2016-05-25 00:04:46 +02:00
|
|
|
|
}
|
2025-08-07 22:31:12 +01:00
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
|
public static void ParseEmptyStreamTest() =>
|
|
|
|
|
|
Assert.Throws<PropertyListFormatException>(ParseEmptyStreamTestDelegate);
|
2018-07-09 19:57:08 +01:00
|
|
|
|
}
|