/// <summary>
 ///     Populates the channel and directory count config settings in the config cache.
 ///     <para>
 ///         Without these, the config cache will reject the incoming counts.
 ///     </para>
 /// </summary>
 private void EnsureCountOptionsAvailable()
 {
     _cache.AddOptionDescription((uint)OptionKey.ChannelCount, ConfigType.Int, "Number of channels",
                                 false);
     _cache.AddOptionDescription((uint)OptionKey.DirectoryCount, ConfigType.Int, "Number of directories",
                                 false);
 }
Esempio n. 2
0
 public void TestAddIntegralOptionDescription(ConfigType type, bool isIndexed)
 {
     _configCache.AddOptionDescription(0, type, "Foo", isIndexed);
     Assert.Equal(-1, _configCache.GetValue(0, -1, isIndexed ? 0 : ConfigCache.NoIndex));
 }