Esempio n. 1
0
        public void OpenSampleModel()
        {
            WelcomeDialog.ClickButton("OpenSampleButton");
            string path = "WoodpeckerCase.model";

            FileDialogAdaptor.DoLoadModel(WelcomeDialog, path);

            Wait.UntilResponsive(WelcomeDialog.Window);
            Wait.UntilResponsive(MainWindow.Window);

            Assert.IsFalse(WelcomeDialog.IsEnabled);
            Assert.Greater(MainWindow.Document.GetBodyItems().Count(), 0);
        }
Esempio n. 2
0
        public void OpenExistingModel()
        {
            WelcomeDialog.ClickButton("OpenExistingButton");
            var fileDlg = new FileDialogAdaptor(WelcomeDialog);

            Assert.AreEqual("Open Model...", fileDlg.Title);
            fileDlg.ClickButton(FileDialogAdaptor.Button.Cancel);
            Assert.IsTrue(WelcomeDialog.IsEnabled);

            WelcomeDialog.ClickButton("OpenExistingButton");
            string path = Path.GetFullPath(Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\Data\UITests\SourceData\Cylinder.model"));

            FileDialogAdaptor.DoLoadModel(WelcomeDialog, path);

            Wait.UntilResponsive(WelcomeDialog.Window);
            Wait.UntilResponsive(MainWindow.Window);

            Assert.IsFalse(WelcomeDialog.IsEnabled);
            Assert.Greater(MainWindow.Document.GetBodyItems().Count(), 0);
        }