public void Params_ShouldBe_Empty() { var args = new[] { "one", "-two", "--zero" }; var option = new CommandLineOption("zero", args); var result = option.Params(); result.Should().BeEmpty(); }
public void Params_ShouldBe_ArgsAfterOption_TillEnd() { var args = new[] { "--zero", "three", "\"http://daily.com\"" }; var expected = new[] { "three", "\"http://daily.com\"" }; var option = new CommandLineOption("zero", args); var result = option.Params(); result.Should().ContainInOrder(expected); }
private string GetCommandLineLanguage(string[] args) { var option = new CommandLineOption("lang", args); return(option.Params().FirstOrDefault()); }