public void GetHelpDetails_WithFirstParseResultSectionNotEqualToName_ReturnsNull() { ArrangeInputs(parseResultSections: "section1 section2 section3", out MockedShellState shellState, out HttpState httpState, out ICoreParseResult parseResult); SetSwaggerCommand setSwaggerCommand = new SetSwaggerCommand(); string result = setSwaggerCommand.GetHelpDetails(shellState, httpState, parseResult); Assert.Null(result); }
public void GetHelpDetails_WithValidInput_ReturnsHelpDetails() { string parseResultSections = "set swagger https://localhost:44366/swagger/v1/swagger.json"; ArrangeInputs(parseResultSections, out MockedShellState shellState, out HttpState httpState, out ICoreParseResult parseResult); SetSwaggerCommand setSwaggerCommand = new SetSwaggerCommand(); string result = setSwaggerCommand.GetHelpDetails(shellState, httpState, parseResult); Assert.Equal(Strings.SetSwaggerCommand_Description, result); }