public void ReportSettings() { var svc = new TelemetryTestService(); string log; using (var t = new RtvsTelemetry(_packageIndex, svc)) { t.ReportSettings(); log = svc.SessionLog; } log.Length.Should().BeGreaterThan(0); log.Should().Contain("Cran"); log.Should().Contain("LoadRData"); log.Should().Contain("SaveRData"); log.Should().Contain("RCommandLineArguments"); log.Should().Contain("MultilineHistorySelection"); log.Should().Contain("AlwaysSaveHistory"); log.Should().Contain("AutoFormat"); log.Should().Contain("CommitOnEnter"); log.Should().Contain("CommitOnSpace"); log.Should().Contain("FormatOnPaste"); log.Should().Contain("SendToReplOnCtrlEnter"); log.Should().Contain("ShowCompletionOnFirstChar"); log.Should().Contain("SignatureHelpEnabled"); log.Should().Contain("CompletionEnabled"); log.Should().Contain("SyntaxCheckInRepl"); log.Should().Contain("PartialArgumentNameMatch"); }
public void ReportSettings() { var svc = new TelemetryTestService(); string log; using (var t = new RtvsTelemetry(_packageIndex, new RSettingsStub(), _editorSettings, _markdownSettings, svc)) { t.ReportSettings(); log = svc.SessionLog; } log.Length.Should().BeGreaterThan(0); log.Should().Contain("Cran"); log.Should().Contain("LoadRData"); log.Should().Contain("SaveRData"); log.Should().Contain("RCommandLineArguments"); log.Should().Contain("MultilineHistorySelection"); log.Should().Contain("AlwaysSaveHistory"); log.Should().Contain("AutoFormat"); log.Should().Contain("CommitOnEnter"); log.Should().Contain("CommitOnSpace"); log.Should().Contain("FormatOnPaste"); log.Should().Contain("ShowCompletionOnFirstChar"); log.Should().Contain("SignatureHelpEnabled"); log.Should().Contain("CompletionEnabled"); log.Should().Contain("SyntaxCheckInRepl"); log.Should().Contain("LinterEnabled"); log.Should().Contain("LinterCamelCase"); log.Should().Contain("LinterPascalCase"); log.Should().Contain("LinterSnakeCase"); log.Should().Contain("LinterUpperCase"); log.Should().Contain("LinterSemicolons"); log.Should().Contain("LinterMultipleDots"); log.Should().Contain("LinterMultipleStatements"); log.Should().Contain("LinterNameLength"); log.Should().Contain("LinterMaxNameLength"); log.Should().Contain("LinterAssignmentType"); log.Should().Contain("LinterSpaceAroundComma"); log.Should().Contain("LinterSpaceBeforeOpenBrace"); log.Should().Contain("LinterSpacesAroundOperators"); log.Should().Contain("LinterSpacesInsideParenthesis"); log.Should().Contain("LinterCloseCurlySeparateLine"); log.Should().Contain("LinterNoSpaceAfterFunctionName"); log.Should().Contain("LinterOpenCurlyPosition"); log.Should().Contain("LinterNoTabs"); log.Should().Contain("LinterTrailingWhitespace"); log.Should().Contain("LinterTrailingBlankLines"); log.Should().Contain("LinterDoubleQuotes"); log.Should().Contain("LinterLineLength"); log.Should().Contain("LinterMaxLineLength"); }