public void Setup() { var arguments = StringArguments.Split(' '); Parser.Default.ParseArguments <Arguments>(arguments).WithNotParsed( e => this.errors = e) .WithParsed(commandArgument => this.commandArguments = commandArgument); }