public void Load_SelectionIndexOutOfRange() { Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("12", TestList())); }
public void Load_SelectionIndexNoNameMatch() { Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("2:foo", TestList())); }
public void Load_SelectionIndexOnly() { Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndexImpl("2", TestList())); }
public void Load_Selection() { Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndexImpl("2:banana:blueberry", TestList())); }
public void Load_NothingSelected() { Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("-1", TestList())); }
public void Load_SelectionIndexSpecialCharMatch2() { Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndexImpl("2:<foo>", TestListWithItemWithSpecialChar())); }
public void Load_SelectionIndexSpecialCharNoMatch() { Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("2:<foo>", TestList())); }