mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 11:04:26 +00:00
25 lines
571 B
C#
25 lines
571 B
C#
using Claunia.PropertyList;
|
|
using NUnit.Framework;
|
|
using System.IO;
|
|
|
|
namespace plistcil.test
|
|
{
|
|
[TestFixture]
|
|
public class PropertyListParserTests
|
|
{
|
|
[Test]
|
|
public static void ParseEmptyStreamTest()
|
|
{
|
|
Assert.Throws<PropertyListFormatException>(new TestDelegate(ParseEmptyStreamTestDelegate));
|
|
}
|
|
|
|
static void ParseEmptyStreamTestDelegate()
|
|
{
|
|
using (MemoryStream stream = new MemoryStream())
|
|
{
|
|
PropertyListParser.Parse(stream);
|
|
}
|
|
}
|
|
}
|
|
}
|