Exemplo n.º 1
0
        public override void Setup()
        {
            fBase = new BaseWindowStub();

            fDialog = new FilePropertiesDlg(fBase);
            fDialog.Show();
        }
Exemplo n.º 2
0
        public static void FilePropertiesDlg_btnAccept_Handler(string name, IntPtr ptr, Form form)
        {
            FilePropertiesDlg dlg         = (FilePropertiesDlg)form;
            IBaseContext      baseContext = dlg.Base.Context;

            EnterText("txtName", form, "sample text");

            SetModalFormHandler(fFormTest, LanguageEditDlgTests.LanguageEditDlg_Handler);
            ClickButton("btnLangEdit", form);

            ClickButton("btnAccept", form);

            GDMSubmitterRecord submitter = baseContext.Tree.GetPtrValue <GDMSubmitterRecord>(baseContext.Tree.Header.Submitter);

            Assert.AreEqual("sample text", submitter.Name.StringValue);
        }