public void XMFullRoslynProject_ShouldBuildAndRunWithMSBuild() { string projectPath = Path.Combine(RoslynTestProjectRoot, "Full/RoslynTestApp.sln"); TI.CleanUnifiedProject(projectPath); TI.BuildProject(projectPath); TI.RunAndAssert(Path.Combine(RoslynTestProjectRoot, "Full/bin/Debug/RoslynTestApp.app/Contents/MacOS/RoslynTestApp"), Array.Empty <string> (), "Run"); }
// [Test] - https://bugzilla.xamarin.com/show_bug.cgi?id=53164 public void XMFullRosylnProjet_ShouldBuildAndRunWithMSBuild() { string projectPath = Path.Combine(RoslynTestProjectRoot, "Full/RoslynTestApp.csproj"); TI.CleanUnifiedProject(projectPath); RestoreRoslynNuget("Full"); TI.BuildProject(projectPath, true, useMSBuild: true); TI.RunAndAssert(Path.Combine(RoslynTestProjectRoot, "Full/bin/Debug/RoslynTestApp.app/Contents/MacOS/RoslynTestApp"), new StringBuilder(), "Run"); }
public void AssemblyRegistration() { var projectName = "AssemblyRegistration"; var projectPath = Path.Combine(TestProjectRoot, projectName, $"{projectName}.csproj"); TI.CleanUnifiedProject(projectPath); TI.BuildProject(projectPath, true); TI.RunAndAssert(Path.Combine(Path.GetDirectoryName(projectPath), $"bin/Debug/{projectName}.app/Contents/MacOS/{projectName}"), new StringBuilder(), "Run"); }
public void XMModernRosylnProjet_ShouldBuildAndRunWithMSBuild() { string projectPath = Path.Combine(RoslynTestProjectRoot, "Modern/RoslynTestApp.sln"); TI.CleanUnifiedProject(projectPath); RestoreRoslynNuget(projectPath); TI.BuildProject(projectPath); TI.RunAndAssert(Path.Combine(RoslynTestProjectRoot, "Modern/bin/Debug/RoslynTestApp.app/Contents/MacOS/RoslynTestApp"), new StringBuilder(), "Run"); }
public void AssemblyRegistration() { var projectName = "AssemblyRegistration"; var projectPath = Path.Combine(Configuration.TestProjectsDirectory, projectName, $"{projectName}.csproj"); TI.CleanUnifiedProject(projectPath); TI.BuildProject(projectPath); TI.RunAndAssert(Path.Combine(Path.GetDirectoryName(projectPath), $"bin/Debug/{projectName}.app/Contents/MacOS/{projectName}"), Array.Empty <string> (), "Run"); }
public void CleanShouldRemoveBundle() { MMPTests.RunMMPTest(tmpDir => { var projects = BindingProjectTests.GenerateTestProject(BindingProjectType.Modern, tmpDir); BindingProjectTests.SetNoEmbedding(projects.Item1); string libBuildLog = BindingProjectTests.SetupAndBuildBindingProject(projects.Item1, true); TI.CleanUnifiedProject(Path.Combine(tmpDir, projects.Item1.ProjectName)); Assert.False(Directory.Exists(Path.Combine(tmpDir, "bin/Debug/MobileBinding.resources")), "Resource bundle was not cleaned up"); }); }