public void Test_TransformOrigin()
        {
            DrawableAffine affine = new DrawableAffine();

            affine.TransformOrigin(4.0, 2.0);

            Assert.Equal(1.0, affine.ScaleX);
            Assert.Equal(1.0, affine.ScaleY);
            Assert.Equal(0.0, affine.ShearX);
            Assert.Equal(0.0, affine.ShearY);
            Assert.Equal(4.0, affine.TranslateX);
            Assert.Equal(2.0, affine.TranslateY);
        }
Esempio n. 2
0
            public void ShouldSetThePropertiesToTheCorrectValue()
            {
                var affine = new DrawableAffine();

                affine.TransformOrigin(4.0, 2.0);

                Assert.Equal(1.0, affine.ScaleX);
                Assert.Equal(1.0, affine.ScaleY);
                Assert.Equal(0.0, affine.ShearX);
                Assert.Equal(0.0, affine.ShearY);
                Assert.Equal(4.0, affine.TranslateX);
                Assert.Equal(2.0, affine.TranslateY);
            }