~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/UnitTests/MonoDevelop.Ide.FindInFiles/SearchCollectorTests.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// 
 
1
// 
2
2
// SearchCollectorTests.cs
3
3
//  
4
4
// Author:
97
97
}";
98
98
                        var project1 = new UnknownProject { FileName = "projectc1.csproj" };
99
99
                        var project2 = new DotNetAssemblyProject { FileName = "projectc2.csproj" };
100
 
                        project2.References.Add (new ProjectReference (project1));
 
100
                        project2.References.Add (new MonoDevelop.Projects.ProjectReference (project1));
101
101
 
102
102
                        var solution = new Solution ();
103
103
                        solution.RootFolder.AddItem (project1);
159
159
                        TestCollectProjects (solution, typeA.GetMembers (m => m.Name == "Method1"), new [] { project1 });
160
160
                        TestCollectProjects (solution, typeA.GetMembers (m => m.Name == "Method2"), new [] { project1 });
161
161
 
162
 
                        project2.References.Add (new ProjectReference (project1));
 
162
                        project2.References.Add (new MonoDevelop.Projects.ProjectReference (project1));
163
163
                        var typeB = compilation.MainAssembly.GetTypeDefinition ("project1", "B", 0);
164
164
                        TestCollectProjects (solution, new [] { typeB }, new Project [] { project1, project2 });
165
165
                        TestCollectProjects (solution, typeB.GetMembers (), new Project [] { project1, project2 });
179
179
                                project.AddFile (new ProjectFile (String.Format ("dummy{0}.cs", i)));
180
180
                                project.AddReference (typeof (object).Assembly.Location);
181
181
                                TypeSystemService.LoadProject (project);
182
 
                                TypeSystemService.GetProjectContentWrapper (project).ReloadAssemblyReferences (project);
 
182
                                TypeSystemService.GetProjectContentWrapper (project).ReconnectAssemblyReferences ();
183
183
                        }
184
184
                        solution.RootFolder.AddItem (new UnknownProject { FileName = "test.csproj" });
185
185