示例#1
0
 public void GetAllBranchesWhichContainGivenCommit_wellformed(
     string cmd,
     bool getLocal,
     bool getRemote,
     string output,
     string[] expected)
 {
     using (_executable.StageOutput(cmd + " " + Sha1.ToString(), output))
     {
         var result = _gitModule.GetAllBranchesWhichContainGivenCommit(Sha1, getLocal, getRemote);
         Assert.AreEqual(result, expected);
     }
 }
示例#2
0
        public void GetAllBranchesWhichContainGivenCommitTestReturnsEmptyList()
        {
            var module       = new GitModule("");
            var actualResult = module.GetAllBranchesWhichContainGivenCommit("fakesha1", false, false);

            Assert.IsNotNull(actualResult);
            Assert.IsTrue(!actualResult.Any());
        }