Skip to content

Commit 2165d26

Browse files
committed
Added extra unit test for the constructor of the DrawableAffine class.
1 parent d5e1d10 commit 2165d26

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
2+
// Licensed under the Apache License, Version 2.0.
3+
4+
using ImageMagick.Drawing;
5+
using Xunit;
6+
7+
namespace Magick.NET.Tests;
8+
9+
public partial class DrawableAffineTests
10+
{
11+
public class TheConstructor
12+
{
13+
[Fact]
14+
public void ShouldSetTheCorrectProperties()
15+
{
16+
var affine = new DrawableAffine(1.0, 2.0, 3.0, 4.0, 5.0, 6.0);
17+
Assert.Equal(1.0, affine.ScaleX);
18+
Assert.Equal(2.0, affine.ScaleY);
19+
Assert.Equal(3.0, affine.ShearX);
20+
Assert.Equal(4.0, affine.ShearY);
21+
Assert.Equal(5.0, affine.TranslateX);
22+
Assert.Equal(6.0, affine.TranslateY);
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)