Пример #1
0
		public void GetSourceTest()
		{
			Vsts vsts = new Vsts();
			vsts.ProjectPath = PROJECT;
			vsts.Server = SERVER;
            vsts.Username = USERNAME;
            vsts.Domain = DOMAIN;
            vsts.Password = PASSWORD;

			vsts.WorkingDirectory = "c:\\source\\temp";
			vsts.AutoGetSource = true;
			vsts.CleanCopy = true;

			IIntegrationResult result = IntegrationResultMother.CreateSuccessful(DateTime.Now);
			result.Label = "Test Build";

			vsts.GetSource(result);

			Assert.IsTrue(File.Exists("c:\\source\\temp\\VSTSPlugins.sln"));

		}