diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-01-20 19:32:53 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-10-21 18:39:14 +0400 |
commit | f73b2a9990495587d514aa1856919c21170a3940 (patch) | |
tree | 9842411ee8644ead5915a715ee7e53984a601df4 /main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs | |
parent | a2046b6331a271e8203df7d3d0f14500d33d60fa (diff) |
Initial drop of the new project model
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs b/main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs index cb113fa442..982f80bc48 100644 --- a/main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs +++ b/main/tests/UnitTests/MonoDevelop.Projects/LocalCopyTests.cs @@ -47,7 +47,7 @@ namespace MonoDevelop.Projects { string solFile = Util.GetSampleProject ("vs-local-copy", "VSLocalCopyTest.sln"); - WorkspaceItem item = Services.ProjectService.ReadWorkspaceItem (Util.GetMonitor (), solFile); + WorkspaceItem item = Services.ProjectService.ReadWorkspaceItem (Util.GetMonitor (), solFile).Result; Assert.IsTrue (item is Solution); Solution sol = (Solution) item; @@ -188,7 +188,7 @@ namespace MonoDevelop.Projects static void AssertCleanBuild (Solution sol, string configuration) { - BuildResult cr = sol.Build (Util.GetMonitor (), configuration); + BuildResult cr = sol.Build (Util.GetMonitor (), configuration).Result; Assert.IsNotNull (cr); Assert.AreEqual (0, cr.ErrorCount); @@ -209,11 +209,15 @@ namespace MonoDevelop.Projects { string solFile = Util.GetSampleProject ("local-copy-package", "ConsoleProject.sln"); - WorkspaceItem item = Services.ProjectService.ReadWorkspaceItem (Util.GetMonitor (), solFile); + WorkspaceItem item = Services.ProjectService.ReadWorkspaceItem (Util.GetMonitor (), solFile).Result; Solution sol = (Solution) item; var p = (DotNetProject)sol.Items [0]; var ar = p.References.First (r => r.Reference.Contains ("gtk")); + + if (!ar.Package.IsGacPackage) + Assert.Ignore ("This test only works with gtk-sharp as a GAC package."); + Assert.AreEqual (false, ar.LocalCopy); ar.LocalCopy = true; Assert.AreEqual (true, ar.LocalCopy); @@ -233,8 +237,8 @@ namespace MonoDevelop.Projects ar.LocalCopy = false; Assert.AreEqual (false, ar.LocalCopy); - sol.Save (new NullProgressMonitor ()); - sol.Build (new NullProgressMonitor (), "Debug"); + sol.Save (new ProgressMonitor ()); + sol.Build (new ProgressMonitor (), "Debug").Wait (); string exeDebug = Platform.IsWindows ? ".pdb" : ".exe.mdb"; |