Exemplo n.º 1
0
 public void ResolveReference_IncompleteInFilteredList()
 {
     m_filteredScp.ReferenceTextBox.Focus();
     m_filteredScp.ReferenceTextBox.Text = "j";
     m_filteredScp.PerformKeyDown(new KeyEventArgs(Keys.Enter));
     Assert.AreEqual("JAS 1:1", m_filteredScp.ReferenceTextBox.Text);
 }
Exemplo n.º 2
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);
        }