public void GetBuildTfsBuildNumber() { var buildAdapter = new BuildAdapter(new HttpAdapter(), JenkinsTestData.JenkinsUrl, JenkinsTestData.ProjectName); string tfsBuildNumber = buildAdapter.GetBuildTfsBuildNumber(JenkinsTestData.SpecificBuildXml); Assert.AreEqual <string>( @"7757ae58-5ba5-4690-b49c-997779f62338", tfsBuildNumber, "The returned TFS Build Number was not correct."); }
public void ThrowArgumentException_WhenTfsBuildNumberNotSet() { var buildAdapter = new BuildAdapter(new HttpAdapter(), JenkinsTestData.JenkinsUrl, JenkinsTestData.ProjectName); buildAdapter.GetBuildTfsBuildNumber(JenkinsTestData.BuildStatusXml); }