Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public SettingsListComboDriver(ComboBox combo, SettingsListBase <TItem> list, bool isVisibleEditting)
 {
     IsVisibleEditting = isVisibleEditting;
     Combo             = combo;
     List = list;
 }
Ejemplo n.º 3
0
 public SettingsListComboDriver(ComboBox combo, SettingsListBase <TItem> list)
     : this(combo, list, true)
 {
 }