Ejemplo n.º 1
0
        protected override void RegisterTests()
        {
            base.RegisterTests();

            FrameGameSystem.Update(() => walkAnimation.IsPlaying = false).TakeScreenshot();
            FrameGameSystem.Update(() => SetAnimationTime(0.2)).TakeScreenshot();
            FrameGameSystem.Update(() => SetAnimationTime(0.9)).TakeScreenshot();
        }
Ejemplo n.º 2
0
        protected override void RegisterTests()
        {
            base.RegisterTests();

            FrameGameSystem.DrawOrder = -1;
            FrameGameSystem.Draw(() => SpriteAnimation.Stop(spriteComponent)).TakeScreenshot();
            FrameGameSystem.Update(() => SetFrameAndUpdateBall(20, 15)).TakeScreenshot();
            FrameGameSystem.Update(() => SetSpriteImage(ballSprite2)).TakeScreenshot();
        }
Ejemplo n.º 3
0
        protected override void RegisterTests()
        {
            base.RegisterTests();

            FrameGameSystem.Update(TestConnectedDevices);
            FrameGameSystem.Update(TestPressRelease);
            FrameGameSystem.Update(TestRepeat);
            FrameGameSystem.Update(TestMouse);
            FrameGameSystem.Update(TestLockedMousePosition);
            FrameGameSystem.Update(TestSingleFrameStates);
            FrameGameSystem.Update(TestGamePad);
        }
Ejemplo n.º 4
0
        protected override void RegisterTests()
        {
            base.RegisterTests();

            FrameGameSystem.Update(() => scrollViewer.SkipUpdates = true); // we don't want automatic random updates

            FrameGameSystem.DrawOrder = -1;                                // perform the draw action before the UI draw calls

            RegisterTestsForContent(randomStackPanel);
            RegisterTestsForContent(virtualizedStackPanel);
            RegisterTestsForContent(uniformGrid);
            RegisterTestsForContent(grid);
        }
Ejemplo n.º 5
0
        private void TakeSequenceOfScreenShots()
        {
            FrameGameSystem.TakeScreenshot();

            TakeSubSequenceOfScreenShots(false);
            TakeSubSequenceOfScreenShots(true);

            FrameGameSystem.Update(ScrollToFixedElementMiddle).TakeScreenshot();

            FrameGameSystem.Update(() => currentStackPanel.ItemVirtualizationEnabled = !currentStackPanel.ItemVirtualizationEnabled).TakeScreenshot();

            TakeSubSequenceOfScreenShots(false);
            TakeSubSequenceOfScreenShots(true);
        }
Ejemplo n.º 6
0
        protected override void RegisterTests()
        {
            base.RegisterTests();

            FrameGameSystem.DrawOrder = -1;

            //FrameGameSystem.Update(() => SetCurrentContent(stackPanel1));
            //TakeSequenceOfScreenShots();

            //FrameGameSystem.Update(() => SetCurrentContent(stackPanel2));
            //TakeSequenceOfScreenShots();

            FrameGameSystem.Update(() => SetCurrentContent(stackPanel3));
            TakeSequenceOfScreenShots();

            //FrameGameSystem.Update(() => SetCurrentContent(stackPanel4));
            //FrameGameSystem.TakeScreenshot();
        }
Ejemplo n.º 7
0
        private void TakeSubSequenceOfScreenShots(bool invalidateStackPanel)
        {
            // test scrolling functions with no arrangement invalidation
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(ScrollToFixedElementMiddle).TakeScreenshot();

            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToNextLine()).TakeScreenshot();
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToPreviousLine()).TakeScreenshot();

            FrameGameSystem.Update(ScrollToFixedElementMiddle);
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToPreviousLine()).TakeScreenshot();
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToNextLine()).TakeScreenshot();

            FrameGameSystem.Update(ScrollToFixedElementMiddle);
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToNextPage()).TakeScreenshot();
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToPreviousPage()).TakeScreenshot();

            FrameGameSystem.Update(ScrollToFixedElementMiddle);
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToPreviousPage()).TakeScreenshot();
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToNextPage()).TakeScreenshot();

            FrameGameSystem.Update(ScrollToFixedElementMiddle);
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToBeginning()).TakeScreenshot();
            if (invalidateStackPanel)
            {
                FrameGameSystem.Update(InvalidateStackPanel);
            }
            FrameGameSystem.Update(() => currentStackPanel.ScrollToEnd()).TakeScreenshot();
        }