public TextEditorExtensionTestCase(Document doc, TestViewContent content, TestWorkbenchWindow window, EditorExtensionTestData data, bool wrap) { Document = doc; Content = content; Window = window; TestData = data; Wrap = wrap; }
async Task Init(TestViewContent content, EditorExtensionTestData data, bool wrap) { //serviceProvider = ServiceHelper.SetupMockShell (); documentManager = await Runtime.GetService <DocumentManager> (); Content = content; TestData = data; Wrap = wrap; }
EditorExtensionTestData(EditorExtensionTestData other) : this(other.FileName, other.Language, other.MimeType, other.ProjectFileName, other.References) { }
public async static Task <TextEditorExtensionTestCase> Create(TestViewContent content, EditorExtensionTestData data, bool wrap) { var test = new TextEditorExtensionTestCase(); await test.Init(content, data, wrap); test.Document = await test.DocumentManager.OpenDocument(content); return(test); }