public void Setup() { m_sut = new InstrumentedLocalizeFieldWorks(); m_rootPath = Path.Combine(Path.GetTempPath(), "XXTestRoot"); m_sut.RootDirectory = m_rootPath; // wipe out anything left from last time if (Directory.Exists(m_rootPath)) Directory.Delete(m_rootPath, true); Directory.CreateDirectory(m_rootPath); Directory.CreateDirectory(m_sut.PoFileDirectory); CreateTestPoFile("es", " first", "A browse view {0}{0:F1}", "Una vista examinar{0}{0:F1}", " second", "A category", "Una categoría", ". /Language Explorer/Configuration/Lexicon/areaConfiguration.xml::/root/menuAddOn/menu/item/@label", "A_llomorph", "A_lomorfo", ". /Language Explorer/Configuration/Parts/MorphologyParts.xml::/PartInventory/bin/part[@id=\"MoAlloAdhocProhib-Jt-Type\"]/lit", "lit1", "litTrans1", ". /Language Explorer/Configuration/ContextHelp.xml::/strings/item[@id=\"AffixForm\"]", "An allomorph of the affix.", "Un alomorfo del afijo."); CreateStringsXml(); CreateProjects(); CreateAssemblyInfo(); }
public void Setup() { m_sut = new InstrumentedLocalizeFieldWorks(); m_rootPath = Path.Combine(Path.GetTempPath(), "XXTestRoot"); m_sut.RootDirectory = m_rootPath; // wipe out anything left from last time if (Directory.Exists(m_rootPath)) { Directory.Delete(m_rootPath, true); } Directory.CreateDirectory(m_rootPath); Directory.CreateDirectory(m_sut.PoFileDirectory); CreateTestPoFile("es", " first", "A browse view {0}{0:F1}", "Una vista examinar{0}{0:F1}", " second", "A category", "Una categoría", ". /Language Explorer/Configuration/Lexicon/areaConfiguration.xml::/root/menuAddOn/menu/item/@label", "A_llomorph", "A_lomorfo", ". /Language Explorer/Configuration/Parts/MorphologyParts.xml::/PartInventory/bin/part[@id=\"MoAlloAdhocProhib-Jt-Type\"]/lit", "lit1", "litTrans1", ". /Language Explorer/Configuration/ContextHelp.xml::/strings/item[@id=\"AffixForm\"]", "An allomorph of the affix.", "Un alomorfo del afijo."); CreateStringsXml(); CreateProjects(); CreateAssemblyInfo(); }