Exemple #1
0
        public void FwListBox_Empty()
        {
            using (var site = new TestListBox(m_cache))
            {
                site.StyleSheet           = FixtureStyleSheet;
                site.WritingSystemFactory = m_wsManager;
                site.WritingSystemCode    = m_wsEng;
                site.ShowHighlight        = false;

                using (new SimpleRootSiteDataProviderTestsHelper(site))
                {
                    site.MakeRoot(SimpleRootSiteDataProviderBaseVc.kfragRoot, () => new ListBoxVc(site));
                    site.ShowForm();
                    var selections = CollectorEnvServices.CollectStringPropertySelectionPoints(site.RootBox);
                    Assert.AreEqual(0, selections.Count());
                }
            }
        }
		public void FwListBox_Empty()
		{
			using (var site = new TestListBox(m_cache))
			{
				site.StyleSheet = FixtureStyleSheet;
				site.WritingSystemFactory = m_wsManager;
				site.WritingSystemCode = m_wsEng;
				site.ShowHighlight = false;

				using (new SimpleRootSiteDataProviderTestsHelper(site))
				{
					site.MakeRoot(SimpleRootSiteDataProviderBaseVc.kfragRoot, () => new ListBoxVc(site));
					site.ShowForm();
					var selections = CollectorEnvServices.CollectStringPropertySelectionPoints(site.RootBox);
					Assert.AreEqual(0, selections.Count());
				}
			}
		}
Exemple #3
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());
                 }
             }
         }
     }
 }
		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());
						}
					}
				}
			}
		}