public void TestGetSetNonIndexedChoiceByDescription() { _configCache.AddOptionDescription(0, ConfigType.Choice, "Foobar", false); _configCache.AddOptionChoice(0, 0, "Yes"); _configCache.AddOptionChoice(0, 1, "No"); Assert.Equal("?", _configCache.GetChoice((uint)0, "?", ConfigCache.NoIndex)); _configCache.SetChoice(0, "No"); Assert.Equal("No", _configCache.GetChoice((uint)0, "?", ConfigCache.NoIndex)); }