public AbstractFileCodeElementTests(string file) { var pair = FileCodeModelTestHelpers.CreateWorkspaceAndFileCodeModel(file); Workspace = pair.Item1; CodeModel = pair.Item2; CurrentSolution = Workspace.CurrentSolution; CurrentProject = CurrentSolution.Projects.Single(); CurrentDocument = CurrentProject.Documents.Single(); }
protected static Tuple <TestWorkspace, EnvDTE.FileCodeModel> CreateWorkspaceAndFileCodeModelAsync(string file) => FileCodeModelTestHelpers.CreateWorkspaceAndFileCodeModel(file);