mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-09 02:36:03 +03:00
Make assertions tell you where they fail
This commit is contained in:
parent
4aebf1d67b
commit
da5bf73ca0
8 changed files with 178 additions and 193 deletions
|
@ -12,10 +12,10 @@ public static partial class DotTiledAssert
|
|||
|
||||
// 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);
|
||||
AssertEqual(expected.Format, actual.Format, nameof(Image.Format));
|
||||
AssertEqual(expected.Source, actual.Source, nameof(Image.Source));
|
||||
AssertEqual(expected.TransparentColor, actual.TransparentColor, nameof(Image.TransparentColor));
|
||||
AssertEqual(expected.Width, actual.Width, nameof(Image.Width));
|
||||
AssertEqual(expected.Height, actual.Height, nameof(Image.Height));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue