Esempio n. 1
0
        public void AnalysisWsListDelete()
        {
            // Setup so the order in the Analysis WS list should be: Spanish, English IPA,
            // English and French.
            SetupAnalysisWss();

            // Set the selected item to "English IPA"
            m_dlg.AnalWsList.SelectedIndex = 1;
            m_dlg.SimulateAnalDeletePress();

            VerifyWritingSystemOrder(m_dlg.AnalWsList,
                                     new string[] { "Spanish", "English", "French" });

            Assert.AreEqual(1, m_dlg.AnalWsList.SelectedIndex);

            // Verify that the correct items are checked.
            VerifyCheckedWritingSystems(m_dlg.AnalWsList,
                                        new string[] { "Spanish" }, true);

            // Verify that the correct items are not checked.
            VerifyCheckedWritingSystems(m_dlg.AnalWsList,
                                        new string[] { "English", "French" }, false);
        }