mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
Code cleanup and refactor.
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
using Claunia.PropertyList;
|
||||
using System.IO;
|
||||
using Claunia.PropertyList;
|
||||
using Xunit;
|
||||
using System.IO;
|
||||
|
||||
namespace plistcil.test
|
||||
{
|
||||
public class PropertyListParserTests
|
||||
{
|
||||
static void ParseEmptyStreamTestDelegate()
|
||||
{
|
||||
using(MemoryStream stream = new MemoryStream()) PropertyListParser.Parse(stream);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public static void ParseEmptyStreamTest()
|
||||
{
|
||||
Assert.Throws<PropertyListFormatException>(() => ParseEmptyStreamTestDelegate());
|
||||
}
|
||||
|
||||
static void ParseEmptyStreamTestDelegate()
|
||||
{
|
||||
using (MemoryStream stream = new MemoryStream())
|
||||
{
|
||||
PropertyListParser.Parse(stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user