mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-09 02:46:04 +03:00
No more TmxSerializer, now different readers for each file format
This commit is contained in:
parent
453200bbb2
commit
bafbd3d6c7
35 changed files with 255 additions and 1486 deletions
21
DotTiled.Tests/Assert/AssertImage.cs
Normal file
21
DotTiled.Tests/Assert/AssertImage.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
namespace DotTiled.Tests;
|
||||
|
||||
public static partial class DotTiledAssert
|
||||
{
|
||||
internal static void AssertImage(Image? expected, Image? actual)
|
||||
{
|
||||
if (expected is null)
|
||||
{
|
||||
Assert.Null(actual);
|
||||
return;
|
||||
}
|
||||
|
||||
// Attributes
|
||||
Assert.NotNull(actual);
|
||||
Assert.Equal(expected.Format, actual.Format);
|
||||
Assert.Equal(expected.Source, actual.Source);
|
||||
Assert.Equal(expected.TransparentColor, actual.TransparentColor);
|
||||
Assert.Equal(expected.Width, actual.Width);
|
||||
Assert.Equal(expected.Height, actual.Height);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue