Inheritance: IFwListBox, IDisposable
Esempio n. 1
0
 public void FwListBox_OneItem()
 {
     using (var fwList = new TestFwList())
     {
         using (var site = new TestListBox(fwList.DataAccess))
         {
             site.StyleSheet           = FixtureStyleSheet;
             site.WritingSystemFactory = m_wsManager;
             site.WritingSystemCode    = m_wsEng;
             using (new SimpleRootSiteDataProviderTestsHelper(site))
             {
                 site.MakeRoot(InnerFwListBox.kfragRoot, () => new ListBoxVc(site));
                 using (var items = new FwListBox.ObjectCollection(fwList))
                 {
                     TsStringUtils.MakeTss("Item0", m_wsEng);
                     site.ShowForm();
                     var selections = CollectorEnvServices.CollectStringPropertySelectionPoints(site.RootBox);
                     Assert.AreEqual(1, selections.Count());
                 }
             }
         }
     }
 }
Esempio n. 2
0
		public void FwListBox_OneItem()
		{
			using (var fwList = new TestFwList())
			{
				using (var site = new TestListBox(fwList.DataAccess))
				{
					site.StyleSheet = FixtureStyleSheet;
					site.WritingSystemFactory = m_wsManager;
					site.WritingSystemCode = m_wsEng;
					using (new SimpleRootSiteDataProviderTestsHelper(site))
					{
						site.MakeRoot(InnerFwListBox.kfragRoot, () => new ListBoxVc(site));
						using (var items = new FwListBox.ObjectCollection(fwList))
						{
							TsStringUtils.MakeTss("Item0", m_wsEng);
							site.ShowForm();
							var selections = CollectorEnvServices.CollectStringPropertySelectionPoints(site.RootBox);
							Assert.AreEqual(1, selections.Count());
						}
					}
				}
			}
		}