public void JobRunFileTest()
        {
            // Arrange
            MemoryStream stream = new MemoryStream();
            StreamWriter writer = new StreamWriter(stream);

            writer.WriteLine("This is a test file!");
            stream.Position = 0;

            JenkinsRunProgress     progress;
            JenkinsBuildParameters par = new JenkinsBuildParameters();

            par.Add("ParamA", "");
            par.Add("ParamB", "");
            par.Add("ParamC", "");
            par.Add("CheckD", true);
            par.Add("CheckE", false);
            par.Add("TextBoxF", "Dies ist ein\r\nkleines Beispiel");
            par.Add("TestFile", stream, "FileName.bin");

            // Act
            using (Jenkins jenkins = new Jenkins(host, this.login, this.password))
            {
                progress = jenkins.RunJobAsync("FreestyleFile", par).Result;
            }

            // Assert
            Assert.IsNotNull(progress, nameof(progress));
            //Assert.IsNotNull(item.Url, "build.Result");
        }
        public void RunParamTest()
        {
            JenkinsModelRun build;

            using (Jenkins jenkins = new Jenkins(this.host, this.login, this.password))
            {
                JenkinsBuildParameters par = new JenkinsBuildParameters();
                par.Add("ParamA", "TestA");
                par.Add("ParamB", "TestB");
                par.Add("ParamC", "TestC");
                par.Add("CheckD", false);
                par.Add("CheckE", true);
                par.Add("TextBoxF", "TextF1\\nTextF2\\nTextF3");

                build = jenkins.RunJobComplete("Freestyle Test Parameter", par);
            }

            //Assert.AreEqual(JenkinsResult.Success, build.Result, "build.Result");
        }
        public void RunParamTest()
        {
            JenkinsModelRun build;

            using (Jenkins jenkins = new Jenkins(host, this.login, this.password))
            {
                JenkinsBuildParameters par = new JenkinsBuildParameters();
                par.Add("ParamA", "");
                par.Add("ParamB", "");
                par.Add("ParamC", "");
                par.Add("CheckD", true);
                par.Add("CheckE", false);
                par.Add("TextBoxF", "Dies ist ein\r\nkleines Beispiel");

                build = jenkins.RunJobComplete("Freestyle Test Parameter", par);
            }

            //Assert.AreEqual(JenkinsResult.Failure, build.Result, "build.Result");
        }
        public void JobRunParamTest()
        {
            // Arrange
            JenkinsRunProgress     progress;
            JenkinsBuildParameters par = new JenkinsBuildParameters();

            par.Add("ParamA", "TestA");
            par.Add("ParamB", "TestB");
            par.Add("ParamC", "TestC");
            par.Add("CheckD", true);
            par.Add("CheckE", false);
            par.Add("TextBoxF", "TextF1\r\nTextF2\r\nTextF3");

            // Act
            using (Jenkins jenkins = new Jenkins(host, this.login, this.password))
            {
                progress = jenkins.RunJobAsync("FreestyleParam", par).Result;
            }

            // Assert
            Assert.IsNotNull(progress, nameof(progress));
            //Assert.IsNotNull(item.Url, "build.Result");
        }