Exemplo n.º 1
0
        public void AbleToCrateAndDeleteBranch()
        {
            const string testBranchName = "subproduct/testFeature";
            var          newBranch      = gitlabClient.CreateBranch(testBranchName, "release");

            Assert.IsNotNull(newBranch);
            Assert.AreEqual(newBranch.Name, testBranchName);

            gitlabClient.DeleteBranch(testBranchName);
            var actualBranches = gitlabClient.SelectAllBranches();

            Assert.AreEqual(0, actualBranches.Count(b => b.Name.Equals(testBranchName)));
        }