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

            vsts.ApplyLabel = true;

			IIntegrationResult result = IntegrationResultMother.CreateSuccessful(DateTime.Now);
			result.Label = "UnitTestRun_" + DateTime.Now.Ticks.ToString();

			vsts.LabelSourceControl(result);

			Assert.IsInstanceOfType(vsts, typeof(Vsts));
		}