示例#1
0
        public void ShouldAllowToNavigateToImageProcessingCustomization()
        {
            // Given
            var shell = new ShellScreenObject();

            // When
            var contentPage = shell.ControlPanel.NavigateTo(ContentRegions.ImageProcessingCustomization);

            // Then
            Assert.IsTrue(contentPage.IsDisplayed());
        }
示例#2
0
        public void ShouldAllowToMinimizeWindow()
        {
            // Given
            var mainWindow = new ShellScreenObject();

            // When
            mainWindow.MinimizeWindow();

            // Then
            Assert.IsTrue(TestedApp.WaitForControlCondition(u => TestedApp.Minimized, 1000));
        }
示例#3
0
        public void ShouldAllowToMaximizeWindow()
        {
            // Given
            var mainWindow = new ShellScreenObject();

            // When
            mainWindow.MaximizeWindow();
            new Wait().Until(() => TestedApp.Maximized);

            // Then
            Assert.IsTrue(TestedApp.Maximized);
        }
示例#4
0
        public void ShouldAllowToCloseWindow()
        {
            // Given
            var mainWindow = new ShellScreenObject();

            // When
            mainWindow.CloseWindow();
            new Wait().Until(() => !TestedApp.Exists);

            // Then
            Assert.IsFalse(TestedApp.Exists);
        }