Skip to content

Commit

Permalink
Mock git ff (#4604) (#4623)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Duplenskikh <115665590+ivanduplenskikh@users.noreply.github.com>
  • Loading branch information
kirill-ivlev and ivanduplenskikh committed Jan 31, 2024
1 parent dc1f0e8 commit 65820e6
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -20,6 +20,7 @@ public class TestGitCliManagerL0
Mock<ArgUtilInstanced> argUtilInstanced = new Mock<ArgUtilInstanced>();
argUtilInstanced.CallBase = true;
argUtilInstanced.Setup(x => x.File(Path.Combine("agenthomedirectory", "externals", "git", "cmd", $"git.exe"), "gitPath")).Callback(() => { });
argUtilInstanced.Setup(x => x.File(Path.Combine("agenthomedirectory", "externals", "ff_git", "cmd", $"git.exe"), "gitPath")).Callback(() => { });
argUtilInstanced.Setup(x => x.Directory("agentworkfolder", "agent.workfolder")).Callback(() => { });
var context = new MockAgentTaskPluginExecutionContext(hostContext.GetTrace());
context.Variables.Add("agent.homedirectory", "agenthomedirectory");
Expand Down

0 comments on commit 65820e6

Please sign in to comment.