コード例 #1
0
        public void ShouldParseVersionOutputs(string line, TheVersion expected)
        {
            TheVersion version = TheVersion.Default;

            var outputProcessor = new LfsVersionOutputProcessor();

            outputProcessor.OnEntry += output => { version = output; };
            outputProcessor.Process(line);

            version.Should().Be(expected);
        }
コード例 #2
0
        public void ShouldParseVersionOutputs(string line, Version expected)
        {
            Version version = null;

            var outputProcessor = new LfsVersionOutputProcessor();

            outputProcessor.OnEntry += output => { version = output; };
            outputProcessor.LineReceived(line);

            version.Should().Be(expected);
        }