private string GetGlossFromLanguageDepot(Guid testEntryGuid, int expectedSensesCount)
 {
     // Since there is no direct way to check the XML files checked in to Mercurial, we
     // do it indirectly by re-cloning the repo from LD and checking the new clone.
     _lfProject.FieldWorksProject.Dispose();
     Directory.Delete(_lfProject.ProjectDir, true);
     var ensureClone = new EnsureCloneAction(_env.Settings, _env.Logger);
     ensureClone.Run(_lfProject);
     return GetGlossFromFdo(testEntryGuid, expectedSensesCount);
 }
 public void Setup()
 {
     _env = new TestEnvironment();
     _languageDepotFolder = new TemporaryFolder(TestContext.CurrentContext.Test.Name);
     _lDSettings = new LfMergeSettingsDouble(_languageDepotFolder.Path);
     Directory.CreateDirectory(_lDSettings.WebWorkDirectory);
     SynchronizeActionTests.LDProjectFolderPath =
         Path.Combine(_lDSettings.WebWorkDirectory, TestContext.CurrentContext.Test.Name);
     Directory.CreateDirectory(SynchronizeActionTests.LDProjectFolderPath);
     _lfProject = LanguageForgeProject.Create(_env.Settings,
         TestContext.CurrentContext.Test.Name);
     _EnsureCloneAction = new EnsureCloneActionWithoutMongo(_env.Settings, _env.Logger);
 }