@@ -29,7 +29,7 @@ internal static IFormattingRule GetDefaultVSFormatter()
29
29
return new Rules . IsFormattedFormattingRule ( ) ;
30
30
}
31
31
32
- internal static Solution CreateSolution ( string [ ] sources , string language = LanguageNames . CSharp )
32
+ private static Solution CreateSolution ( string [ ] sources , string language = LanguageNames . CSharp )
33
33
{
34
34
string fileExtension = language == LanguageNames . CSharp ? CSharpFileExtension : VBFileExtension ;
35
35
var projectId = ProjectId . CreateNewId ( TestProjectName ) ;
@@ -52,7 +52,7 @@ internal static Solution CreateSolution(string[] sources, string language = Lang
52
52
return solution ;
53
53
}
54
54
55
- internal static async Task < Solution > Format ( Solution solution , IFormattingRule rule )
55
+ private static async Task < Solution > Format ( Solution solution , IFormattingRule rule )
56
56
{
57
57
var documentIds = solution . Projects . SelectMany ( p => p . DocumentIds ) ;
58
58
@@ -66,13 +66,13 @@ internal static async Task<Solution> Format(Solution solution, IFormattingRule r
66
66
return solution ;
67
67
}
68
68
69
- internal static async Task < Document > RewriteDocumentAsync ( Document document , IFormattingRule rule )
69
+ private static async Task < Document > RewriteDocumentAsync ( Document document , IFormattingRule rule )
70
70
{
71
71
document = await rule . ProcessAsync ( document , CancellationToken . None ) ;
72
72
return await GetDefaultVSFormatter ( ) . ProcessAsync ( document , CancellationToken . None ) ;
73
73
}
74
74
75
- internal static void AssertSolutionEqual ( Solution expectedSolution , Solution actualSolution )
75
+ private static void AssertSolutionEqual ( Solution expectedSolution , Solution actualSolution )
76
76
{
77
77
var expectedDocuments = expectedSolution . Projects . SelectMany ( p => p . Documents ) ;
78
78
var actualDocuments = actualSolution . Projects . SelectMany ( p => p . Documents ) ;
@@ -89,7 +89,7 @@ internal static void AssertSolutionEqual(Solution expectedSolution, Solution act
89
89
}
90
90
}
91
91
92
- internal void Verify ( string [ ] sources , string [ ] expected , IFormattingRule rule )
92
+ private static void Verify ( string [ ] sources , string [ ] expected , IFormattingRule rule )
93
93
{
94
94
var inputSolution = CreateSolution ( sources ) ;
95
95
var expectedSolution = CreateSolution ( expected ) ;
@@ -101,12 +101,12 @@ internal void Verify(string[] sources, string[] expected, IFormattingRule rule)
101
101
AssertSolutionEqual ( expectedSolution , actualSolution ) ;
102
102
}
103
103
104
- internal void Verify ( string [ ] source , string [ ] expected )
104
+ protected void Verify ( string [ ] source , string [ ] expected )
105
105
{
106
106
Verify ( source , expected , GetFormattingRule ( ) ) ;
107
107
}
108
108
109
- internal void Verify ( string source , string expected )
109
+ protected void Verify ( string source , string expected )
110
110
{
111
111
Verify ( new string [ ] { source } , new string [ ] { expected } ) ;
112
112
}
0 commit comments