Ejemplo n.º 1
0
        public void ScrPassageDropDownBehaviorTests()
        {
            if (m_scp.DropDownWindow != null)
            {
                m_scp.DropDownWindow.Close();
            }

            Assert.IsNull(m_scp.DropDownWindow);
            m_scp.SimulateDropDownButtonClick();
            Assert.IsTrue(m_scp.DropDownWindow.Visible);
            m_scp.DropDownWindow.PerformKeyDown(new KeyEventArgs(Keys.Escape));
            Assert.IsNull(m_scp.DropDownWindow);

            // Verify that Alt-Down shows the list.
            m_scp.PerformKeyDown(new KeyEventArgs(Keys.Down | Keys.Alt));
            Assert.IsNotNull(m_scp.DropDownWindow);
            Assert.IsTrue(m_scp.DropDownWindow.Visible);
        }
Ejemplo n.º 2
0
 public void VerifyBookCountForFilteredList()
 {
     m_filteredScp.SimulateDropDownButtonClick();
     Assert.AreEqual(3, m_filteredScp.DropDownWindow.ButtonsShowing, "Incorrect number of books showing");
 }