public void TestFindChoiceIndexFor(bool isIndexed) { _configCache.AddOptionDescription(0, ConfigType.Choice, "Foobar", isIndexed); _configCache.AddOptionChoice(0, 0, "Yes"); _configCache.AddOptionChoice(0, 1, "No"); Assert.Equal(0, _configCache.FindChoiceIndexFor(0, "Yes")); Assert.Equal(1, _configCache.FindChoiceIndexFor(0, "No")); }