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