public void SpanningBoundsLandscape()
        {
            var testDualScreenService = new TestDualScreenServiceLandscape();

            testDualScreenService.IsSpanned = true;
            testDualScreenService.SetLocationOnScreen(new Point(0, 400));
            var result = new StackLayout()
            {
                IsPlatformEnabled = true
            };

            result.Layout(new Rectangle(0, 400, testDualScreenService.ScaledScreenSize.Width, 200));
            DualScreenInfo info = new DualScreenInfo(result, testDualScreenService);


            var top = info.SpanningBounds[0];

            Assert.AreEqual(0, top.X);
            Assert.AreEqual(0, top.Y);
            Assert.AreEqual(testDualScreenService.ScaledScreenSize.Width, top.Width);
            Assert.AreEqual(90, top.Height);

            var bottom = info.SpanningBounds[1];

            Assert.AreEqual(0, bottom.X);
            Assert.AreEqual(110, bottom.Y);
            Assert.AreEqual(testDualScreenService.ScaledScreenSize.Width, bottom.Width);
            Assert.AreEqual(90, bottom.Height);
        }
        public void LandscapeLayoutEndsUnderneathHinge()
        {
            var testDualScreenService = new TestDualScreenServiceLandscape();

            testDualScreenService.SetLocationOnScreen(new Point(0, 100));
            var result = CreateTwoPaneView(dualScreenService: testDualScreenService);

            result.Layout(new Rectangle(0, 100, testDualScreenService.DeviceInfo.ScaledScreenSize.Width, 400));

            Assert.AreEqual(390, result.Pane1.Height);
            Assert.AreEqual(0, result.Pane1.Y);
            Assert.IsFalse(result.Children[1].IsVisible);
        }
        public void LayoutShiftedOffCenterTallMode()
        {
            var testDualScreenService = new TestDualScreenServiceLandscape();

            testDualScreenService.SetLocationOnScreen(new Point(0, 400));
            var result = CreateTwoPaneView(testDualScreenService);

            result.Layout(new Rectangle(0, 400, testDualScreenService.DeviceInfo.ScaledScreenSize.Width, 500));

            Assert.AreEqual(90, result.Children[0].Height);
            Assert.AreEqual(400, result.Bounds.Y);
            Assert.AreEqual(390, result.Children[1].Height);
            Assert.AreEqual(110, result.Children[1].Y);
        }