Exemplo n.º 1
0
        internal static TestWorkspace Create(
            XElement workspaceElement,
            bool openDocuments            = true,
            ExportProvider exportProvider = null,
            TestComposition composition   = null,
            string workspaceKind          = null,
            IDocumentServiceProvider documentServiceProvider    = null,
            bool ignoreUnchangeableDocumentsWhenApplyingChanges = true)
        {
            var workspace = new TestWorkspace(exportProvider, composition, workspaceKind, ignoreUnchangeableDocumentsWhenApplyingChanges: ignoreUnchangeableDocumentsWhenApplyingChanges);

            workspace.InitializeFromXml(workspaceElement, openDocuments, documentServiceProvider);
            return(workspace);
        }