Exemplo n.º 1
0
 public void Load_SelectionIndexNoNameMatch()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndex("2:foo", TestList()));
 }
Exemplo n.º 2
0
 public void Load_SelectionIndexOutOfRange()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndex("12", TestList()));
 }
Exemplo n.º 3
0
 public void Load_Selection()
 {
     Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndex("2:banana:blueberry", TestList()));
 }
Exemplo n.º 4
0
 public void Load_SelectionIndexOnly()
 {
     Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndex("2", TestList()));
 }
Exemplo n.º 5
0
 public void Load_NothingSelected()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndex("-1", TestList()));
 }