mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
Code refactor and clean-up to follow new C# 9 conventions and features where applicable.
This commit is contained in:
@@ -8,13 +8,13 @@ namespace plistcil.test
|
||||
{
|
||||
static void ParseEmptyStreamTestDelegate()
|
||||
{
|
||||
using(MemoryStream stream = new MemoryStream()) PropertyListParser.Parse(stream);
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
PropertyListParser.Parse(stream);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public static void ParseEmptyStreamTest()
|
||||
{
|
||||
Assert.Throws<PropertyListFormatException>(() => ParseEmptyStreamTestDelegate());
|
||||
}
|
||||
public static void ParseEmptyStreamTest() =>
|
||||
Assert.Throws<PropertyListFormatException>(ParseEmptyStreamTestDelegate);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user