private GlyssenBundle GetGlyssenBundleToBeUsedForProject(bool includeLdml = true) { var bundle = GlyssenBundleTests.GetNewGlyssenBundleForTest(includeLdml); m_tempProjectFolders.Add(Path.Combine(Program.BaseDataFolder, bundle.Metadata.Id)); return(bundle); }
public void QuoteSystem_Changed() { var originalBundleAndFile = GlyssenBundleTests.GetNewGlyssenBundleAndFile(); try { m_tempProjectFolders.Add(Path.Combine(Program.BaseDataFolder, originalBundleAndFile.Item1.Metadata.Id)); var originalBundle = originalBundleAndFile.Item1; var project = new Project(originalBundle); WaitForProjectInitializationToFinish(project, ProjectState.FullyInitialized); project.QuoteSystem = QuoteSystem.Default; } finally { // Must dispose after because changing the quote system needs access to original bundle file originalBundleAndFile.Item2.Dispose(); } }