Ejemplo n.º 1
0
		public void BorderColor ()
		{
			//TODO iOS
			var remote = new ViewContainerRemote (App, Test.Button.BorderColor, PlatformViewType);
			remote.GoTo ();
			
		}
Ejemplo n.º 2
0
        public void BorderColor()
        {
            //TODO iOS
            var remote = new ViewContainerRemote(App, Test.Button.BorderColor, PlatformViewType);

            remote.GoTo();
        }
Ejemplo n.º 3
0
        public void Image()
        {
            //TODO iOS
            var remote = new ViewContainerRemote(App, Test.Button.Image, PlatformViewType);

            remote.GoTo();
        }
Ejemplo n.º 4
0
        public override void _GestureRecognizers()
        {
            // TODO Can implement this
            var remote = new ViewContainerRemote(App, Test.View.GestureRecognizers, PlatformViewType);

            remote.GoTo();
        }
		public void IsRunning ()
		{
			var remote = new ViewContainerRemote (App, Test.ActivityIndicator.IsRunning, PlatformViewType);
			remote.GoTo ();

			var isRunning = remote.GetProperty<bool> (ActivityIndicator.IsRunningProperty);
			Assert.IsTrue (isRunning);
		}
Ejemplo n.º 6
0
        public virtual void _TranslationY()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.TranslationY, PlatformViewType);

            remote.GoTo();
#if __WINDOWS__
            Assert.Inconclusive(PleaseInspect);
#endif
        }
Ejemplo n.º 7
0
        public void Text()
        {
            var remote = new ViewContainerRemote(App, Test.Button.Text, PlatformViewType);

            remote.GoTo();

            var buttonText = remote.GetProperty <string>(Button.TextProperty);

            Assert.AreEqual("Text", buttonText);
        }
Ejemplo n.º 8
0
        public void TextColor()
        {
            var remote = new ViewContainerRemote(App, Test.Button.TextColor, PlatformViewType);

            remote.GoTo();

            var buttonTextColor = remote.GetProperty <Color> (Button.TextColorProperty);

            Assert.AreEqual(Color.Pink, buttonTextColor);
        }
Ejemplo n.º 9
0
		public void BorderRadius ()
		{
			var remote = new ViewContainerRemote (App, Test.Button.BorderRadius, PlatformViewType);
			remote.GoTo ();

			if (App is iOSApp) {
				var borderRadius = remote.GetProperty<float> (Button.BorderRadiusProperty);
				Assert.AreEqual (20.0f, borderRadius);
			}
			
		}
Ejemplo n.º 10
0
		public void BorderWidth ()
		{
			var remote = new ViewContainerRemote (App, Test.Button.BorderWidth, PlatformViewType);
			remote.GoTo ();

			if (App is iOSApp) {
				var borderWidth = remote.GetProperty<float> (Button.BorderWidthProperty);
				Assert.AreEqual (15.0f, borderWidth);
			}

		}
Ejemplo n.º 11
0
        public void Command()
        {
            var remote = new ViewContainerRemote(App, Test.Button.Command, PlatformViewType);

            remote.GoTo();

            remote.TapView();

            App.WaitForElement(q => q.Marked("Hello Command"));
            App.Tap(q => q.Marked("Destroy"));
        }
Ejemplo n.º 12
0
        public virtual void _Opacity()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.Opacity, PlatformViewType);

            remote.GoTo();

            float opacity = -1f;

            opacity = remote.GetProperty <float> (View.OpacityProperty);
            Assert.AreEqual(0.5f, opacity);
        }
Ejemplo n.º 13
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);
        }
Ejemplo n.º 14
0
        public void BorderRadius()
        {
            var remote = new ViewContainerRemote(App, Test.Button.BorderRadius, PlatformViewType);

            remote.GoTo();

#if __IOS__
            var borderRadius = remote.GetProperty <float>(Button.BorderRadiusProperty);
            Assert.AreEqual(20.0f, borderRadius);
#endif
        }
Ejemplo n.º 15
0
        public void BorderWidth()
        {
            var remote = new ViewContainerRemote(App, Test.Button.BorderWidth, PlatformViewType);

            remote.GoTo();

#if __IOS__
            var borderWidth = remote.GetProperty <float>(Button.BorderWidthProperty);
            Assert.AreEqual(15.0f, borderWidth);
#endif
        }
        public void IsRunning()
        {
            var remote = new ViewContainerRemote(App, Test.ActivityIndicator.IsRunning, PlatformViewType);

            remote.GoTo();
#if __MACOS__
            Assert.Inconclusive("Not tested yet");
#else
            var isRunning = remote.GetProperty <bool> (ActivityIndicator.IsRunningProperty);
            Assert.IsTrue(isRunning);
#endif
        }
Ejemplo n.º 17
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
        }
Ejemplo n.º 18
0
        public virtual void _Opacity()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.Opacity, PlatformViewType);

            remote.GoTo();
#if __MACOS__
            Assert.Inconclusive("needs testing");
#else
            float opacity = -1f;
            opacity = remote.GetProperty <float> (View.OpacityProperty);
            Assert.AreEqual(0.5f, opacity);
#endif
        }
Ejemplo n.º 19
0
        public void Font()
        {
            //TODO iOS
            var remote = new ViewContainerRemote(App, Test.Button.Font, PlatformViewType);

            remote.GoTo();

#if __ANDROID__
            var isBold = remote.GetProperty <bool> (Button.FontProperty);
            Assert.True(isBold);
#else
            var font = remote.GetProperty <Font> (Button.FontProperty);
            Assert.True(font.FontAttributes.HasFlag(FontAttributes.Bold));
#endif
        }
Ejemplo n.º 20
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
        }
Ejemplo n.º 21
0
        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);
            }
        }
Ejemplo n.º 22
0
        public void Font()
        {
            //TODO iOS
            var remote = new ViewContainerRemote(App, Test.Button.Font, PlatformViewType);

            remote.GoTo();

            if (App is AndroidApp)
            {
                var isBold = remote.GetProperty <bool> (Button.FontProperty);
                Assert.True(isBold);
            }
            else
            {
                var font = remote.GetProperty <Font> (Button.FontProperty);
                Assert.True(font.FontAttributes.HasFlag(FontAttributes.Bold));
            }
        }
Ejemplo n.º 23
0
        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
        }
Ejemplo n.º 24
0
		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);
			}
		}
Ejemplo n.º 25
0
		public void Command ()
		{
			var remote = new ViewContainerRemote (App, Test.Button.Command, PlatformViewType);
			remote.GoTo ();

			remote.TapView ();

			App.WaitForElement (q => q.Marked ("Hello Command"));
			App.Tap (q => q.Marked ("Destroy"));
		}
Ejemplo n.º 26
0
		public void Font ()
		{
			//TODO iOS
			var remote = new ViewContainerRemote (App, Test.Button.Font, PlatformViewType);
			remote.GoTo ();

			if (App is AndroidApp) {
				var isBold = remote.GetProperty<bool> (Button.FontProperty);
				Assert.True (isBold);
			} else {
				var font = remote.GetProperty<Font> (Button.FontProperty);
				Assert.True (font.FontAttributes.HasFlag (FontAttributes.Bold));
			}

		}
Ejemplo n.º 27
0
		public void Image ()
		{
			//TODO iOS
			var remote = new ViewContainerRemote (App, Test.Button.Image, PlatformViewType);
			remote.GoTo ();
		}
Ejemplo n.º 28
0
		public virtual void _Opacity ()
		{
			var remote = new ViewContainerRemote (App, Test.VisualElement.Opacity, PlatformViewType);
			remote.GoTo ();

			float opacity = -1f;
			opacity = remote.GetProperty<float> (View.OpacityProperty);
			Assert.AreEqual (0.5f, opacity);
		}
Ejemplo n.º 29
0
		public void Text ()
		{
			var remote = new ViewContainerRemote (App, Test.Button.Text, PlatformViewType);
			remote.GoTo ();

			var buttonText = remote.GetProperty<string> (Button.TextProperty);
			Assert.AreEqual ("Text", buttonText);
		}
Ejemplo n.º 30
0
        public virtual void _TranslationY()
        {
            var remote = new ViewContainerRemote(App, Test.VisualElement.TranslationY, PlatformViewType);

            remote.GoTo();
        }
Ejemplo n.º 31
0
		public void TextColor ()
		{
			//TODO iOS
			if (App is AndroidApp) {
				var remote = new ViewContainerRemote (App, Test.Button.TextColor, PlatformViewType);
				remote.GoTo ();

				var buttonTextColor = remote.GetProperty<Color> (Button.TextColorProperty);
				Assert.AreEqual (Color.Pink, buttonTextColor);
			}
		}
Ejemplo n.º 32
0
		public virtual void _TranslationY ()
		{
			var remote = new ViewContainerRemote (App, Test.VisualElement.TranslationY, PlatformViewType);
			remote.GoTo ();
		}
Ejemplo n.º 33
0
		public void Font ()
		{
			//TODO iOS
			var remote = new ViewContainerRemote (App, Test.Button.Font, PlatformViewType);
			remote.GoTo ();

#if __ANDROID__
			var isBold = remote.GetProperty<bool> (Button.FontProperty);
			Assert.True (isBold);
#else
			var font = remote.GetProperty<Font> (Button.FontProperty);
			Assert.True (font.FontAttributes.HasFlag (FontAttributes.Bold));
#endif
		}
Ejemplo n.º 34
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); 
		}
Ejemplo n.º 35
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
		}