Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }