23 references to FormatCommandCommon
dotnet-format (4)
Commands\FormatAnalyzersCommand.cs (1)
7
using static Microsoft.CodeAnalysis.Tools.
FormatCommandCommon
;
Commands\FormatStyleCommand.cs (1)
7
using static Microsoft.CodeAnalysis.Tools.
FormatCommandCommon
;
Commands\FormatWhitespaceCommand.cs (1)
7
using static Microsoft.CodeAnalysis.Tools.
FormatCommandCommon
;
Commands\RootFormatCommand.cs (1)
7
using static Microsoft.CodeAnalysis.Tools.
FormatCommandCommon
;
dotnet-format.UnitTests (19)
ProgramTests.cs (19)
15
var exitCode =
FormatCommandCommon
.GetExitCode(formatResult, check: true);
17
Assert.Equal(
FormatCommandCommon
.CheckFailedExitCode, exitCode);
24
var exitCode =
FormatCommandCommon
.GetExitCode(formatResult, check: true);
33
var exitCode =
FormatCommandCommon
.GetExitCode(formatResult, check: false);
59
result.GetValue(
FormatCommandCommon
.NoRestoreOption);
60
Assert.Collection(result.GetValue(
FormatCommandCommon
.IncludeOption),
63
Assert.Collection(result.GetValue(
FormatCommandCommon
.ExcludeOption),
66
Assert.True(result.GetValue(
FormatCommandCommon
.VerifyNoChanges));
67
Assert.Equal("binary-log-path", result.GetValue(
FormatCommandCommon
.BinarylogOption));
68
Assert.Equal("report", result.GetValue(
FormatCommandCommon
.ReportOption));
69
Assert.Equal("detailed", result.GetValue(
FormatCommandCommon
.VerbosityOption));
70
Assert.True(result.GetValue(
FormatCommandCommon
.IncludeGeneratedOption));
84
Assert.Equal("workspaceValue", result.GetValue(
FormatCommandCommon
.SlnOrProjectArgument));
98
Assert.Equal("workspaceValue", result.GetValue(
FormatCommandCommon
.SlnOrProjectArgument));
99
Assert.Equal("detailed", result.GetValue(
FormatCommandCommon
.VerbosityOption));
113
Assert.Equal("workspaceValue", result.GetValue(
FormatCommandCommon
.SlnOrProjectArgument));
114
Assert.Equal("detailed", result.GetValue(
FormatCommandCommon
.VerbosityOption));
180
Assert.NotNull(result.GetResult(
FormatCommandCommon
.BinarylogOption));
194
Assert.NotNull(result.GetResult(
FormatCommandCommon
.BinarylogOption));