public void Test_DirectorySearcher_Loads_Only_Files_With_Configuration_And_Key() { IDirectorySearcher directorySearcher = new DirectorySearcher( provider, pathResolver, keyGenerator, fileProvider, Path.Combine(this.CurrentDirectory.FullName, Paths.App_Config.HasNestedFiles.Path), "*.config", true); var configurationDictionary = directorySearcher.GetConfigurationDictionary(); Assert.AreEqual(1, configurationDictionary.Keys.Count); }