@@ -210,6 +210,24 @@ public async Task TestFieldWithoutDocumentationAsync()
210210 await this . TestFieldDeclarationDocumentationAsync ( "protected internal" , true , false ) . ConfigureAwait ( false ) ;
211211 await this . TestFieldDeclarationDocumentationAsync ( "public" , true , false ) . ConfigureAwait ( false ) ;
212212
213+ // Re-test with the 'documentInternalElements' setting disabled (does impact fields)
214+ this . currentTestSettings = @"
215+ {
216+ ""settings"": {
217+ ""documentationRules"": {
218+ ""documentInternalElements"": false
219+ }
220+ }
221+ }
222+ " ;
223+
224+ await this . TestFieldDeclarationDocumentationAsync ( string . Empty , false , false ) . ConfigureAwait ( false ) ;
225+ await this . TestFieldDeclarationDocumentationAsync ( "private" , false , false ) . ConfigureAwait ( false ) ;
226+ await this . TestFieldDeclarationDocumentationAsync ( "protected" , true , false ) . ConfigureAwait ( false ) ;
227+ await this . TestFieldDeclarationDocumentationAsync ( "internal" , false , false ) . ConfigureAwait ( false ) ;
228+ await this . TestFieldDeclarationDocumentationAsync ( "protected internal" , true , false ) . ConfigureAwait ( false ) ;
229+ await this . TestFieldDeclarationDocumentationAsync ( "public" , true , false ) . ConfigureAwait ( false ) ;
230+
213231 // Re-test with the 'documentPrivateFields' setting enabled (does impact fields)
214232 this . currentTestSettings = @"
215233{
@@ -257,6 +275,24 @@ public async Task TestFieldWithDocumentationAsync()
257275 await this . TestFieldDeclarationDocumentationAsync ( "protected internal" , false , true ) . ConfigureAwait ( false ) ;
258276 await this . TestFieldDeclarationDocumentationAsync ( "public" , false , true ) . ConfigureAwait ( false ) ;
259277
278+ // Re-test with the 'documentInternalElements' setting disabled (does impact fields)
279+ this . currentTestSettings = @"
280+ {
281+ ""settings"": {
282+ ""documentationRules"": {
283+ ""documentInternalElements"": false
284+ }
285+ }
286+ }
287+ " ;
288+
289+ await this . TestFieldDeclarationDocumentationAsync ( string . Empty , false , true ) . ConfigureAwait ( false ) ;
290+ await this . TestFieldDeclarationDocumentationAsync ( "private" , false , true ) . ConfigureAwait ( false ) ;
291+ await this . TestFieldDeclarationDocumentationAsync ( "protected" , false , true ) . ConfigureAwait ( false ) ;
292+ await this . TestFieldDeclarationDocumentationAsync ( "internal" , false , true ) . ConfigureAwait ( false ) ;
293+ await this . TestFieldDeclarationDocumentationAsync ( "protected internal" , false , true ) . ConfigureAwait ( false ) ;
294+ await this . TestFieldDeclarationDocumentationAsync ( "public" , false , true ) . ConfigureAwait ( false ) ;
295+
260296 // Re-test with the 'documentPrivateFields' setting enabled (does impact fields)
261297 this . currentTestSettings = @"
262298{
0 commit comments