Пример #1
0
        public void IsTransformed_ScaleUnity_RotateZeroPanZero_IsFalse()
        {
            var transform = new SpatialTransform {
                Scale = 1.0, Rotation = 0, Pan = new Point2(0, 0)
            };

            Assert.False(transform.IsTransformed);
        }
Пример #2
0
        public void IsTransformed_PanNonZero_IsTrue()
        {
            var transform = new SpatialTransform {
                Pan = new Point2(5, -7)
            };

            Assert.True(transform.IsTransformed);
        }
Пример #3
0
 public void IsTransformed_ScaleUnity_RotateZeroPanZero_IsFalse()
 {
     var transform = new SpatialTransform { Scale = 1.0, Rotation = 0, Pan = new Point2(0, 0) };
     Assert.False(transform.IsTransformed);
 }
Пример #4
0
 public void IsTransformed_PanNonZero_IsTrue()
 {
     var transform = new SpatialTransform { Pan = new Point2(5, -7) };
     Assert.True(transform.IsTransformed);
 }