Ejemplo n.º 1
0
        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 Task <Tuple <TestWorkspace, EnvDTE.FileCodeModel> > CreateWorkspaceAndFileCodeModelAsync(string file)
 {
     return(FileCodeModelTestHelpers.CreateWorkspaceAndFileCodeModelAsync(file));
 }
Ejemplo n.º 3
0
 protected static Tuple <TestWorkspace, EnvDTE.FileCodeModel> CreateWorkspaceAndFileCodeModelAsync(string file)
 => FileCodeModelTestHelpers.CreateWorkspaceAndFileCodeModel(file);