private void ValidateInvalidValue <TItem>(CommandArgs.Argument arg, SettingsListBase <TItem> list) where TItem : IKeyContainer <string>, IXmlSerializable { const string NO_VALUE = "NO VALUE"; string expected = string.Format( Resources.ValueInvalidException_ValueInvalidException_The_value___0___is_not_valid_for_the_argument__1___Use_one_of__2_, NO_VALUE, arg.ArgumentText, CommandArgs.GetDisplayNames(list)); expected = expected.Substring(0, expected.IndexOf(@"None, ", StringComparison.Ordinal) + 6); AssertEx.ThrowsException <CommandArgs.ValueInvalidException>(() => Run(arg.GetArgumentTextWithValue(NO_VALUE)), expected); }
public SettingsListComboDriver(ComboBox combo, SettingsListBase <TItem> list, bool isVisibleEditting) { IsVisibleEditting = isVisibleEditting; Combo = combo; List = list; }
public SettingsListComboDriver(ComboBox combo, SettingsListBase <TItem> list) : this(combo, list, true) { }