Esempio n. 1
0
 public void FilteredListHasBooksInCanonicalOrder()
 {
     m_filteredScp.Initialize(new ScrReference(3, 3, 3, ScrVers.English), new [] { 4, 5, 3, 2 });
     Assert.AreEqual(4, m_filteredScp.BookLabels.Length);
     Assert.AreEqual(2, m_filteredScp.BookLabels[0].BookNum);
     Assert.AreEqual(3, m_filteredScp.BookLabels[1].BookNum);
     Assert.AreEqual(4, m_filteredScp.BookLabels[2].BookNum);
     Assert.AreEqual(5, m_filteredScp.BookLabels[3].BookNum);
 }
Esempio n. 2
0
        public void TestSetup()
        {
            m_ctrlOwner = new Form();

            m_scp         = new DummyScrPassageControl(new ScrReference(01001001, ScrVers.English));
            m_filteredScp = new DummyScrPassageControl(new ScrReference(01001001, ScrVers.English));
            m_filteredScp.Initialize(m_filteredScp.ScReference, new [] { 57, 59, 65 });

            m_ctrlOwner.Controls.Add(m_scp);
            m_ctrlOwner.Controls.Add(m_filteredScp);
            m_ctrlOwner.CreateControl();

            if (m_scp.DropDownWindow != null)
            {
                m_scp.DropDownWindow.Close();
            }

            if (m_filteredScp.DropDownWindow != null)
            {
                m_filteredScp.DropDownWindow.Close();
            }
        }
		public void TestSetup()
		{
			m_ctrlOwner = new Form();

			m_scp = new DummyScrPassageControl(new ScrReference(01001001, ScrVers.English));
			m_filteredScp = new DummyScrPassageControl(new ScrReference(01001001, ScrVers.English));
			m_filteredScp.Initialize(m_filteredScp.ScReference, new [] {57, 59, 65});

			m_ctrlOwner.Controls.Add(m_scp);
			m_ctrlOwner.Controls.Add(m_filteredScp);
			m_ctrlOwner.CreateControl();

			if (m_scp.DropDownWindow != null)
				m_scp.DropDownWindow.Close();

			if (m_filteredScp.DropDownWindow != null)
				m_filteredScp.DropDownWindow.Close();
		}