public override void FixtureTeardown() { m_textsDefn = null; m_tagRepo = null; if (m_tagChild != null) m_tagChild.Dispose(); m_tagChild = null; base.FixtureTeardown(); }
/// <summary> /// non-undoable task /// </summary> private void DoSetupFixture() { // setup default vernacular ws. m_wsXkal = Cache.ServiceLocator.WritingSystemManager.Set("qaa-x-kal"); m_wsXkal.DefaultFontName = "Times New Roman"; Cache.ServiceLocator.WritingSystems.VernacularWritingSystems.Add(m_wsXkal); Cache.ServiceLocator.WritingSystems.CurrentVernacularWritingSystems.Insert(0, m_wsXkal); m_textsDefn = new XmlDocument(); m_tagRepo = Cache.ServiceLocator.GetInstance<ITextTagRepository>(); ConfigurationFilePath("Language Explorer/Configuration/Words/AreaConfiguration.xml"); m_text1 = LoadTestText("FDO/FDOTests/TestData/ParagraphParserTestTexts.xml", 1, m_textsDefn); m_para1 = m_text1.ContentsOA.ParagraphsOS[0] as IStTxtPara; ParseTestText(); m_tagChild = new TestTaggingChild(Cache); m_tagChild.SetText(m_text1.ContentsOA); // This could change, but at least it gives a reasonably stable list to test from. m_textMarkupTags = Cache.LangProject.GetDefaultTextTagList(); LoadTagListPossibilities(); }