示例#1
0
		public void VaultCheckoutTest()
		{
			VaultCheckout checkout = new VaultCheckout();
			checkout.BuildEngine = _buildEngine;
			checkout.Username = _username;
			checkout.Password = _password;
			checkout.Url = _url;
			checkout.Repository = _repository;
			checkout.Path = _repositoryPath + _repositoryFile;
			checkout.Comment = _checkoutComment;
			checkout.WorkingFolder = _workingFolder;
			
			Assert.IsNotNull(checkout);
			bool result = checkout.Execute();
			Assert.IsTrue(result, "Checkout failed!");
			Assert.IsTrue(checkout.Version > 0, "Version number is not greater than zero.");

			UndoCheckout();
		}
示例#2
0
		private void CheckoutFile()
		{
			VaultCheckout checkout = new VaultCheckout();
			checkout.BuildEngine = _buildEngine;
			checkout.Username = _username;
			checkout.Password = _password;
			checkout.Url = _url;
			checkout.Repository = _repository;
			checkout.Path = _repositoryPath;
			checkout.Comment = _checkoutComment;
			checkout.WorkingFolder = _workingFolder;
			checkout.Execute();
		}