public void SimpleSwitch2ValueTest() { var values = CommandLineSwitchHelper.GetCommands(_defaultTestArgs).ToDictionary(x => x.Key, x => x.Value); Assert.AreEqual("20", values["b"][0]); Assert.AreEqual("asdf", values["b"][1]); }
public void SimpleSwitchNoValueTest() { var values = CommandLineSwitchHelper.GetCommands(_defaultTestArgs).ToDictionary(x => x.Key, x => x.Value); Assert.IsEmpty(values["d"]); }
public void SimpleSwitchExtraPrefixesTest() { var values = CommandLineSwitchHelper.GetCommands(_defaultTestArgs).ToDictionary(x => x.Key, x => x.Value); Assert.AreEqual("asdfa", values["c"].First()); }
public void SimpleSwitch1ValueTest() { var values = CommandLineSwitchHelper.GetCommands(_defaultTestArgs).ToDictionary(x => x.Key, x => x.Value); Assert.AreEqual("50", values["a"].First()); }
public void MainKeyTest() { var values = CommandLineSwitchHelper.GetCommands(_defaultTestArgs).ToDictionary(x => x.Key, x => x.Value); Assert.AreEqual("my main value", values[CommandLineSwitchHelper.PrimaryKeyName].First()); }