1 write to NamedSections
Microsoft.Build (1)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (1)
59
NamedSections
= namedSections;
11 references to NamedSections
Microsoft.Build (1)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
79
foreach (var section in editorConfigFiles[i].
NamedSections
)
Microsoft.Build.BuildCheck.UnitTests (10)
EditorConfig_Tests.cs (4)
787
var namedSections = config.
NamedSections
;
813
var namedSections = config.
NamedSections
;
864
Assert.Equal(0, config.
NamedSections
.Length);
877
Assert.Equal(0, config.
NamedSections
.Length);
EditorConfigParser_Tests.cs (6)
88
listOfEditorConfigFile[0].
NamedSections
[0].Name.ShouldBe("*.csproj");
89
listOfEditorConfigFile[0].
NamedSections
[0].Properties["test_key"].ShouldBe("test_value_updated");
117
listOfEditorConfigFile[0].
NamedSections
[0].Name.ShouldBe("*.csproj");
133
result.
NamedSections
.Length.ShouldBe(2);
135
var csSection = result.
NamedSections
.FirstOrDefault(s => s.Name == "*.cs");
141
var mdSection = result.
NamedSections
.FirstOrDefault(s => s.Name == "*.md");