Beispiel #1
0
        public void State_CalledWithMaximized_MaximizesTheWindow()
        {
            Do.Launch(TestData.ApplicationPath).And.Wait(1000);
            var mainWindow = WindowFinder.Search(Use.AutomationId(TestData.MainWindowAutomationId));

            WindowSetup.Prepare(mainWindow).State(WindowState.Maximized);

            Assert.AreEqual(WindowState.Maximized, mainWindow.WindowState);
            mainWindow.CloseButton.Unsafe.Click();
        }
Beispiel #2
0
        public void Size_CalledWith100and100_PositionatesTheWuindow()
        {
            Do.Launch(TestData.ApplicationPath).And.Wait(1000);
            var mainWindow = WindowFinder.Search(Use.AutomationId(TestData.MainWindowAutomationId));

            WindowSetup.Prepare(mainWindow).Size(500, 400);

            Assert.AreEqual(500, mainWindow.Properties.BoundingRectangle.Width);
            Assert.AreEqual(400, mainWindow.Properties.BoundingRectangle.Height);
            mainWindow.CloseButton.Unsafe.Click();
        }