예제 #1
0
 public void Load_SelectionIndexOutOfRange()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("12", TestList()));
 }
예제 #2
0
 public void Load_SelectionIndexNoNameMatch()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("2:foo", TestList()));
 }
예제 #3
0
 public void Load_SelectionIndexOnly()
 {
     Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndexImpl("2", TestList()));
 }
예제 #4
0
 public void Load_Selection()
 {
     Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndexImpl("2:banana:blueberry", TestList()));
 }
예제 #5
0
 public void Load_NothingSelected()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("-1", TestList()));
 }
예제 #6
0
 public void Load_SelectionIndexSpecialCharMatch2()
 {
     Assert.AreEqual(2, DSDropDownBase.ParseSelectedIndexImpl("2:<foo>", TestListWithItemWithSpecialChar()));
 }
예제 #7
0
 public void Load_SelectionIndexSpecialCharNoMatch()
 {
     Assert.AreEqual(-1, DSDropDownBase.ParseSelectedIndexImpl("2:<foo>", TestList()));
 }