Makes some protected methods available for testing.
Inheritance: InterlinRibbon
示例#1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Create minimal test data required for every test.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected override void CreateTestData()
		{
			base.CreateTestData();
			m_ribbon = new TestInterlinRibbon(Cache, m_stText.Hvo);
			m_ribbon.Width = 100;
			m_ribbon.Height = 40;
			Cache.VwCacheDaAccessor.CacheVecProp(m_stText.Hvo, m_ribbon.AnnotationListId, new int[0], 0);
		}
示例#2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Create minimal test data required for every test.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 protected override void CreateTestData()
 {
     base.CreateTestData();
     m_ribbon        = new TestInterlinRibbon(Cache, m_stText.Hvo);
     m_ribbon.Width  = 100;
     m_ribbon.Height = 40;
     Cache.VwCacheDaAccessor.CacheVecProp(m_stText.Hvo, m_ribbon.AnnotationListId, new int[0], 0);
 }
示例#3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Create minimal test data required for every test.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 protected override void CreateTestData()
 {
     base.CreateTestData();
     m_ribbon        = new TestInterlinRibbon(Cache, m_stText.Hvo);
     m_ribbon.Width  = 100;
     m_ribbon.Height = 40;
     Assert.IsNotNull(m_ribbon.Decorator, "Don't have correct access here.");
     m_ribbon.CacheRibbonItems(new List <AnalysisOccurrence>());
 }
示例#4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Create minimal test data required for every test.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected override void CreateTestData()
		{
			base.CreateTestData();
			m_ribbon = new TestInterlinRibbon(Cache, m_stText.Hvo);
			m_ribbon.Width = 100;
			m_ribbon.Height = 40;
			Assert.IsNotNull(m_ribbon.Decorator, "Don't have correct access here.");
			m_ribbon.CacheRibbonItems(new List<AnalysisOccurrence>());
		}
示例#5
0
		public override void Exit()
		{
			if (m_ribbon != null)
			{
				m_ribbon.Dispose();
				m_ribbon = null;
			}
			m_ribbon = null;
			base.Exit();
		}
示例#6
0
 public override void Exit()
 {
     if (m_ribbon != null)
     {
         m_ribbon.Dispose();
         m_ribbon = null;
     }
     m_ribbon = null;
     base.Exit();
 }