Esempio n. 1
0
 private void ChecksIfMyCurrentActionIsCorrectlySet(Branch branch)
 {
     _sut.MyCurrentAction += (s, action) =>
     {
         Assert.IsTrue(action.Contains(branch.GetDescription().ToLower()));
     };
 }
Esempio n. 2
0
        private IEnumerable <string> GetBranchesForExecutingGetLatest(Branch latestVersionForBranches, string sourceBranch, string targetBranch)
        {
            var branches = new List <string>();

            switch (latestVersionForBranches)
            {
            case Branch.Target:
                branches.Add(targetBranch);
                break;

            case Branch.Source:
                branches.Add(sourceBranch);
                break;

            case Branch.SourceAndTarget:
                branches.Add(targetBranch);
                branches.Add(sourceBranch);
                break;
            }

            return(branches);
        }