Beispiel #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();
        }
Beispiel #2
0
 protected static Tuple <TestWorkspace, EnvDTE.FileCodeModel> CreateWorkspaceAndFileCodeModelAsync(string file)
 => FileCodeModelTestHelpers.CreateWorkspaceAndFileCodeModel(file);