Esempio n. 1
0
        public virtual void _Scale()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.Scale, PlatformViewType);

            remote.GoTo();

            var    scaleMatrix     = remote.GetProperty <Matrix> (View.ScaleProperty);
            Matrix generatedMatrix = NumericExtensions.BuildScaleMatrix(0.5f);

            Assert.AreEqual(generatedMatrix, scaleMatrix);
        }
Esempio n. 2
0
        public virtual void _Scale()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.Scale, PlatformViewType);

            remote.GoTo();
#if __MACOS__
            Assert.Inconclusive("needs testing");
#else
            var    scaleMatrix     = remote.GetProperty <Matrix>(View.ScaleProperty);
            Matrix generatedMatrix = NumericExtensions.BuildScaleMatrix(0.5f);
            Assert.AreEqual(generatedMatrix, scaleMatrix);
#endif
        }