Esempio n. 1
0
 public void Save_SelectedIndexWithSpecialChar()
 {
     // This test makes sure that when SaveSelectedIndexImpl() is called with a index
     // of item with Xml special char in the item.Name, the special char is escaped
     Assert.AreEqual(
         "2:<foo>",
         DSDropDownBase.SaveSelectedIndexImpl(2, TestListWithItemWithSpecialChar()));
 }
Esempio n. 2
0
 public void Save_SelectedIndex()
 {
     Assert.AreEqual(
         "2:banana:blueberry",
         DSDropDownBase.SaveSelectedIndexImpl(2, TestList()));
 }
Esempio n. 3
0
 public void Save_NothingInList()
 {
     Assert.AreEqual("-1", DSDropDownBase.SaveSelectedIndexImpl(5, new List <DynamoDropDownItem>()));
 }
Esempio n. 4
0
 public void Save_NothingSelected()
 {
     Assert.AreEqual(
         "-1",
         DSDropDownBase.SaveSelectedIndexImpl(-1, TestList()));
 }