Пример #1
0
        public virtual void _RotationY()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.RotationY, PlatformViewType);

            remote.GoTo();

#if __ANDROID__
            var rotationY = remote.GetProperty <float>(View.RotationYProperty);
            Assert.AreEqual(10.0f, rotationY);
#endif
#if __IOS__
            var    rotationYMatrix = remote.GetProperty <Matrix> (View.RotationYProperty);
            Matrix matrix          = NumericExtensions.CalculateRotationMatrixForDegrees(10.0f, Axis.Y);
            Assert.AreEqual(matrix, rotationYMatrix);
#endif
#if __WINDOWS__
            Assert.Inconclusive(PleaseInspect);
#endif
        }