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); }
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); }