예제 #1
0
 public void ResolveReference_IncompleteInProject()
 {
     m_dbScp.ReferenceTextBox.Focus();
     m_dbScp.ReferenceTextBox.Text = "j";
     m_dbScp.PerformKeyDown(new KeyEventArgs(Keys.Enter));
     Assert.AreEqual("JAS 1:1", m_dbScp.ReferenceTextBox.Text);
 }
예제 #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);
        }