Inheritance: IFwListBox, IDisposable
Exemplo 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());
                 }
             }
         }
     }
 }
Exemplo 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());
						}
					}
				}
			}
		}