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 }
public virtual void _RotationX() { var remote = new ViewContainerRemote(App, Test.VisualElement.RotationX, PlatformViewType); remote.GoTo(); if (App is AndroidApp) { var rotationX = remote.GetProperty <float> (View.RotationXProperty); Assert.AreEqual(33.0f, rotationX); } else if (App is iOSApp) { var rotationXMatrix = remote.GetProperty <Matrix> (View.RotationXProperty); Matrix matrix = NumericExtensions.CalculateRotationMatrixForDegrees(33.0f, Axis.X); Assert.AreEqual(matrix, rotationXMatrix); } }
public virtual void _RotationX() { var remote = new ViewContainerRemote(App, Test.VisualElement.RotationX, PlatformViewType); remote.GoTo(); #if __ANDROID__ var rotationX = remote.GetProperty <float>(View.RotationXProperty); Assert.AreEqual(33.0f, rotationX); #endif #if __IOS__ var rotationXMatrix = remote.GetProperty <Matrix> (View.RotationXProperty); Matrix matrix = NumericExtensions.CalculateRotationMatrixForDegrees(33.0f, Axis.X); Assert.AreEqual(matrix, rotationXMatrix); #endif #if __WINDOWS__ Assert.Inconclusive(PleaseInspect); #endif }