public void BuildSetInformationTest() { // Arrange JenkinsModelFreeStyleBuild freeStyleBuild = null; // Act using (Jenkins jenkins = new Jenkins(this.host, this.login, this.password)) { freeStyleBuild = jenkins.GetLastBuildAsync <JenkinsModelFreeStyleBuild>("FreeStyle").Result; jenkins.SetBuildInformation("FreeStyle", freeStyleBuild.Number, "Build name", "Build description").Wait(); freeStyleBuild = jenkins.GetBuildAsync <JenkinsModelFreeStyleBuild>("FreeStyle", freeStyleBuild.Number).Result; jenkins.SetBuildInformation("FreeStyle", freeStyleBuild.Number, "", "").Wait(); } // Assert Assert.IsNotNull(freeStyleBuild, nameof(freeStyleBuild)); Assert.AreEqual("Build name", freeStyleBuild.DisplayName, nameof(freeStyleBuild.DisplayName)); Assert.AreEqual("Build description", freeStyleBuild.Description, nameof(freeStyleBuild.Description)); }