public void SvnCheckoutRemote() { SvnCheckout checkout = new SvnCheckout(); checkout.BuildEngine = new MockBuild(); Assert.IsNotNull(checkout); checkout.LocalPath = Path.Combine(testDirectory, @"MSBuildTasksCheckout"); checkout.RepositoryPath = "http://msbuildtasks.tigris.org/svn/msbuildtasks/trunk/Source/MSBuild.Community.Tasks.Tests/Subversion"; checkout.Username = "******"; checkout.Password = "******"; bool result = checkout.Execute(); Assert.IsTrue(result); Assert.IsTrue(checkout.Revision > 0); }
public void SvnCheckoutLocal() { string repoPath = "d:/svn/repo/Test"; DirectoryInfo dirInfo = new DirectoryInfo(repoPath); if (!dirInfo.Exists) { Assert.Ignore("Repository path '{0}' does not exist", repoPath); } SvnCheckout checkout = new SvnCheckout(); checkout.BuildEngine = new MockBuild(); Assert.IsNotNull(checkout); checkout.LocalPath = Path.Combine(testDirectory, @"TestCheckout"); checkout.RepositoryPath = "file:///" + repoPath + "/trunk"; bool result = checkout.Execute(); Assert.IsTrue(result); Assert.IsTrue(checkout.Revision > 0); }