Exemple #1
0
        public void ThrowArgumentException_WhenIncorrectUrlIsBuilt()
        {
            string jenkunsServerUrl = " &^s";
            string projectName      = "#";
            var    buildAdapter     = new BuildAdapter(new HttpAdapter());

            buildAdapter.GenerateParameterizedQueueBuildUrl(jenkunsServerUrl, projectName);
        }
Exemple #2
0
        public void GenerateParameterizedQueueBuildUrl()
        {
            var    buildAdapter = new BuildAdapter(new HttpAdapter(), JenkinsTestData.JenkinsUrl, JenkinsTestData.ProjectName);
            string resutedUrl   = buildAdapter.GenerateParameterizedQueueBuildUrl(JenkinsTestData.JenkinsUrl, JenkinsTestData.ProjectName);

            Assert.AreEqual <string>(
                @"http://localhost:8080/job/Jenkins-CSharp-Api.Parameterized/buildWithParameters",
                resutedUrl,
                "The generated Parameterized Queue Build Url was not correct.");
        }