Beispiel #1
0
        public void GetParents_calls_correct_command_and_parses_response()
        {
            var args = new GitArgumentBuilder("log")
            {
                "-n 1",
                "--format=format:%P",
                Guid1
            };

            using (_executable.StageOutput(
                       args.ToString(),
                       $"{Guid2} {Guid3}"))
            {
                var parents = _gitModule.GetParents(Guid1);

                Assert.AreEqual(parents, new[] { Guid2, Guid3 });
            }
        }