48 instantiations of TestSection
Microsoft.Extensions.Configuration.KeyPerFile.Tests (48)
ConfigurationProviderTestBase.cs (48)
420= new TestSection 425("Section1", new TestSection 430("Section2", new TestSection 440("Section3", new TestSection 444("Section4", new TestSection 454= new TestSection 459("Section1", new TestSection 464("Section2", new TestSection 474("Section3", new TestSection 478("Section4", new TestSection 488= new TestSection 493("Section1", new TestSection 498("Section2", new TestSection 507("Section3", new TestSection 511("Section4", new TestSection 521= new TestSection 526("Section1", new TestSection 531("Section2", new TestSection 541("Section3", new TestSection()) 546= new TestSection 551("SectioN1", new TestSection 556("SectioN2", new TestSection 566("SectioN3", new TestSection 570("SectioN4", new TestSection 580= new TestSection 589("Section1", new TestSection 594("Section2", new TestSection 602("Section2", new TestSection 613("Section3", new TestSection 617("Section4", new TestSection 627= new TestSection 636("Section1", new TestSection 641("Section2", new TestSection 649("SectioN2", new TestSection 660("Section3", new TestSection 664("Section4", new TestSection 674= new TestSection 679("Section1", new TestSection 684("Section2", new TestSection 694("Section3", new TestSection 698("Section4", new TestSection 708= new TestSection 717("Section1", new TestSection 726("Section2", new TestSection 737("Section3", new TestSection 741("Section4", new TestSection 747("Section5r", new TestSection 751("Section6r", new TestSection
34 references to TestSection
Microsoft.Extensions.Configuration.KeyPerFile.Tests (34)
ConfigurationProviderCommandLineTest.cs (2)
15TestSection testConfig) 30private void SectionToTestFiles(List<IFileInfo> testFiles, string sectionName, TestSection section)
ConfigurationProviderTestBase.cs (32)
17var configRoot = BuildConfigRoot(LoadThroughProvider(TestSection.TestConfig)); 25var configRoot = BuildConfigRoot(LoadThroughProvider(TestSection.TestConfig)); 49AssertConfig(BuildConfigRoot(LoadThroughProvider(TestSection.NullsTestConfig)), expectNulls: true, nullValue: ""); 57LoadUsingMemoryProvider(TestSection.MissingSection2ValuesConfig), 58LoadThroughProvider(TestSection.MissingSection4Config))); 62LoadUsingMemoryProvider(TestSection.MissingSection4Config), 63LoadThroughProvider(TestSection.MissingSection2ValuesConfig))); 71LoadThroughProvider(TestSection.MissingSection2ValuesConfig), 72LoadUsingMemoryProvider(TestSection.MissingSection4Config))); 76LoadThroughProvider(TestSection.MissingSection4Config), 77LoadUsingMemoryProvider(TestSection.MissingSection2ValuesConfig))); 85LoadUsingMemoryProvider(TestSection.NoValuesTestConfig), 86LoadThroughProvider(TestSection.TestConfig))); 94LoadUsingMemoryProvider(TestSection.DifferentCasedTestConfig), 95LoadThroughProvider(TestSection.TestConfig))); 102() => BuildConfigRoot(LoadThroughProvider(TestSection.DuplicatesTestConfig))); 109() => BuildConfigRoot(LoadThroughProvider(TestSection.DuplicatesDifferentCaseTestConfig))); 131var configuration = BuildConfigRoot(LoadThroughProvider(TestSection.TestConfig)); 326protected abstract (IConfigurationProvider Provider, Action Initializer) LoadThroughProvider(TestSection testConfig); 341protected static (IConfigurationProvider Provider, Action Initializer) LoadUsingMemoryProvider(TestSection testConfig) 356TestSection section, 416public IEnumerable<(string Key, TestSection Section)> Sections { get; set; } 417= Enumerable.Empty<(string, TestSection)>(); 419public static TestSection TestConfig { get; } 453public static TestSection NoValuesTestConfig { get; } 487public static TestSection MissingSection2ValuesConfig { get; } 520public static TestSection MissingSection4Config { get; } 545public static TestSection DifferentCasedTestConfig { get; } 579public static TestSection DuplicatesTestConfig { get; } 626public static TestSection DuplicatesDifferentCaseTestConfig { get; } 673public static TestSection NullsTestConfig { get; } 707public static TestSection ExtraValuesTestConfig { get; }