public void LoadSharedProject ()
{
string solFile = Util.GetSampleProject ("SharedProjectTest", "SharedProjectTest.sln");
Solution sol = (Solution) Services.ProjectService.ReadWorkspaceItem (Util.GetMonitor (), solFile);
Assert.AreEqual (4, sol.GetAllProjects ().Count);
var pc1 = sol.FindProjectByName ("Console1");
Assert.IsNotNull (pc1);
var pc2 = sol.FindProjectByName ("Console2");
Assert.IsNotNull (pc2);
var pc3 = sol.FindProjectByName ("Console3");
Assert.IsNotNull (pc3);
var pcs = (SharedAssetsProject) sol.FindProjectByName ("Shared");
Assert.IsNotNull (pcs);
var sharedFile = pcs.ItemDirectory.Combine ("MyClass.cs");
Assert.IsTrue (pc1.Files.GetFile (sharedFile) != null);
Assert.IsTrue (pc2.Files.GetFile (sharedFile) != null);
Assert.IsFalse (pc3.Files.GetFile (sharedFile) != null);
Assert.IsTrue (pcs.Files.GetFile (sharedFile) != null);
Assert.AreEqual ("SharedNamespace", pcs.DefaultNamespace);
}