public Action?ParseAlternativeExecution(string[] args) { var arguments = Sanitize(args); if (arguments.Contains('h')) { return () => { _displayMessages.Help(); Environment.Exit(0); } } ; if (arguments.Contains('g')) { return () => { _configService.CreateSampleConfig(); Environment.Exit(0); } } ; return(null); }
public async Task ConfigAvailable() { // Given // When await _configService.CreateSampleConfig(); // Then Assert.NotNull(_configService.Config()); }