public async Task TestLoadingSolutionWithUnsupportedType() { string solFile = Util.GetSampleProject("unsupported-project-roundtrip", "TestApp.WinPhone.sln"); var sol = (Projects.Solution) await Services.ProjectService.ReadWorkspaceItem(Util.GetMonitor(), solFile); await TypeSystemServiceTestExtensions.LoadSolution(sol); }
public async Task TestLoadingSolution() { string solFile = Util.GetSampleProject("console-project", "ConsoleProject.sln"); var sol = (Projects.Solution) await Services.ProjectService.ReadWorkspaceItem(Util.GetMonitor(), solFile); await TypeSystemServiceTestExtensions.LoadSolution(sol); var compilation = await TypeSystemService.GetCompilationAsync(sol.GetAllProjects().First()); var programType = compilation.GetTypeByMetadataName("ConsoleProject.Program"); Assert.IsNotNull(programType); }