Inheritance: IVwEnv
Ejemplo n.º 1
0
 public void StringPropIsMarked()
 {
     using (var view = new XmlView(m_hvoLexDb, "root", null, true, m_sda))
     {
         var vc = new XmlVc(null, "root", true, view, null, m_sda);
         vc.IdentifySource = true;
         vc.SetCache(Cache);
         vc.m_layouts  = m_layouts;
         vc.DataAccess = m_sda;
         var testEnv = new MockEnv()
         {
             DataAccess = m_sda, OpenObject = m_hvoLexDb
         };
         vc.Display(testEnv, m_hvoLexDb, XmlVc.kRootFragId);
         VerifySourceIdentified(testEnv.EventHistory, m_hvoKick, kflidEntry_Form, m_wsVern, "Entry:basic:Headword:HeadwordL");
         VerifyLabel(testEnv.EventHistory, m_hvoKick, kflidEntry_Form, m_wsVern, 1, ")", "Entry:basic:Headword:HeadwordL");
         VerifyLabel(testEnv.EventHistory, m_hvoKick, kflidEntry_Form, m_wsVern, -2, "head(", "Entry:basic:Headword:HeadwordL");
         VerifySourceIdentified(testEnv.EventHistory, m_hvoKick, kflidEntry_Summary, "Entry:basic:Summary:Sum.");
     }
 }
Ejemplo n.º 2
0
		public void StringPropIsMarked()
		{
			using (var view = new XmlView(m_hvoLexDb, "root", null, true, m_sda))
			{
				var vc = new XmlVc(null, "root", true, view, null, m_sda);
				vc.IdentifySource = true;
				vc.SetCache(Cache);
				vc.m_layouts = m_layouts;
				vc.DataAccess = m_sda;
				var testEnv = new MockEnv() {DataAccess = m_sda, OpenObject = m_hvoLexDb};
				vc.Display(testEnv, m_hvoLexDb, XmlVc.kRootFragId);
				VerifySourceIdentified(testEnv.EventHistory, m_hvoKick, kflidEntry_Form, m_wsVern, "Entry:basic:Headword:HeadwordL");
				VerifyLabel(testEnv.EventHistory, m_hvoKick, kflidEntry_Form, m_wsVern, 1, ")", "Entry:basic:Headword:HeadwordL");

				VerifyLabel(testEnv.EventHistory, m_hvoKick, kflidEntry_Form, m_wsVern, -3, "head(", "Entry:basic:Headword:HeadwordL");
				VerifySourceIdentified(testEnv.EventHistory, m_hvoKick, kflidEntry_Summary, "Entry:basic:Summary:Sum.");
			}
		}