Exemplo n.º 1
0
        public void ThrowArgumentException_WhenIncorrectUrlIsBuilt()
        {
            string jenkunsServerUrl = " &^s";
            string projectName      = "#";
            var    buildAdapter     = new Jenkins.API.Builders.Services.BuildAdapter(new HttpAdapter());

            buildAdapter.GenerateParamQueueBuidlUrl(jenkunsServerUrl, projectName);
        }
Exemplo n.º 2
0
        public void GenerateParameterizedQueueBuildUrl()
        {
            var    buildAdapter = new Jenkins.API.Builders.Services.BuildAdapter(new HttpAdapter(), JenkinsTestData.JenkinsUrl, JenkinsTestData.ProjectName);
            string resutedUrl   = buildAdapter.GenerateParamQueueBuidlUrl(JenkinsTestData.JenkinsUrl, JenkinsTestData.ProjectName);

            Assert.AreEqual <string>(
                @"...job...",
                resutedUrl,
                "The generated Parameterized Queue Build Url was not correct.");
        }