private void ChecksIfMyCurrentActionIsCorrectlySet(Branch branch) { _sut.MyCurrentAction += (s, action) => { Assert.IsTrue(action.Contains(branch.GetDescription().ToLower())); }; }
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); }