public void SelectNoCommand() { var result = ""; var sut = new RootCommand(x => result = x); sut.Run(new Mock <IArgumentsParser>().Object, "third"); Assert.Equal("", result); }
public void SelectSecondCommand() { var result = ""; var sut = new RootCommand(x => result = x); sut.Run("first"); Assert.Equal("first", result); }