PressOk() private method

Presses the OK button.
private PressOk ( ) : void
return void
 public void General_LanguageNameChange()
 {
     m_dlg.ShowDialog(m_wsKalaba);
     m_dlg.LanguageNameTextBox.Text = "Kalab";
     m_dlg.VerifyListBox(new[] { "Kalab", "Kalab (International Phonetic Alphabet)" });
     m_dlg.VerifyLoadedForListBoxSelection("Kalab");
     m_dlg.PressOk();
     Assert.AreEqual(DialogResult.OK, m_dlg.DialogResult);
     Assert.AreEqual(true, m_dlg.IsChanged);
     VerifyWsNames(
         new[] { m_wsKalaba.Handle, m_wsKalabaIpa.Handle },
         new[] { "Kalab", "Kalab (International Phonetic Alphabet)" },
         new[] { "qaa-x-kal", "qaa-fonipa-x-kal" });
 }
Ejemplo n.º 2
0
        public void NoCache_DoesNotThrow()
        {
            var wsManager = new WritingSystemManager();
            CoreWritingSystemDefinition ws = wsManager.Set("qaa-x-kal");

            ws.Language = new LanguageSubtag(ws.Language, "Kalaba");
            IWritingSystemContainer wsContainer = new MemoryWritingSystemContainer(wsManager.WritingSystems, wsManager.WritingSystems,
                                                                                   Enumerable.Empty <CoreWritingSystemDefinition>(), Enumerable.Empty <CoreWritingSystemDefinition>(), Enumerable.Empty <CoreWritingSystemDefinition>());

            using (var dlg = new DummyWritingSystemPropertiesDialog(wsManager, wsContainer))
            {
                dlg.ShowDialog(ws);
                dlg.LanguageNameTextBox.Text = "Kalab";
                Assert.DoesNotThrow(() => dlg.PressOk());
                Assert.That(ws.DisplayLabel, Is.EqualTo("Kalab"));
            }
        }
Ejemplo n.º 3
0
        public void CreateNewPuaCharacter()
        {
            // Make some test characters
            PUACharacter newPuaChar =
                new PUACharacter("E001", "ARABIC-INDIC DIGIT THREE;Nd;0;L;;3;3;3;N;;;;;");
            PUACharacter copyOfNewPuaChar = new PUACharacter(newPuaChar);
            PUACharacter modifiedPuaChar  =
                new PUACharacter("E001", "CHEESE DIGIT THREE;Lu;0;L;;;;;N;;;0063;0664;0665");
            PUACharacter copyOfModifiedPuaChar = new PUACharacter(modifiedPuaChar);

            // "click" new
            m_dlgWsProps.PressBtnNewPUA(newPuaChar);
            CheckPuaCharactersMatch(copyOfNewPuaChar, "using the 'new' button", m_dlgWsProps);

            // "click" modify
            m_dlgWsProps.PressBtnModifyPUA(modifiedPuaChar);
            CheckPuaCharactersMatch(copyOfModifiedPuaChar, "using the 'modify' button", m_dlgWsProps);

            // "click" okay
            m_dlgWsProps.PressOk();
            TestUtils.Check_PUA(0xE001, "CHEESE DIGIT THREE", LgGeneralCharCategory.kccLu);
        }