示例#1
0
        public void Parsing_ReturnsLastComponentOfOutput(string gitOutput, string expectedResult)
        {
            var app = new ApplicationDefinition(null, string.Empty);

            var command = new Commands.SymbolicRef();
            command.Name = "HEAD";

            var result = command.ProcessResult(app, new Tuple<int, string>(0, gitOutput));
            Assert.That(result, Is.EqualTo(expectedResult));
        }