public void JobDescriptionTest() { // Arrange string descriptionDef = null; string descriptionTst = null; // Act using (Jenkins jenkins = new Jenkins(host, this.login, this.password)) { jenkins.SetJobDescriptionAsync("FreestyleDescription", "Default Description", CancellationToken.None).Wait(); descriptionDef = jenkins.GetJobDescriptionAsync("FreestyleDescription", CancellationToken.None).Result; jenkins.SetJobDescriptionAsync("FreestyleDescription", "Test Description", CancellationToken.None).Wait(); descriptionTst = jenkins.GetJobDescriptionAsync("FreestyleDescription", CancellationToken.None).Result; jenkins.SetJobDescriptionAsync("FreestyleDescription", "Default Description", CancellationToken.None).Wait(); } // Assert Assert.AreEqual("Default Description", descriptionDef, nameof(descriptionDef)); Assert.AreEqual("Test Description", descriptionTst, nameof(descriptionTst)); }