Exemplo 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()));
 }
Exemplo n.º 2
0
 public void Save_SelectedIndex()
 {
     Assert.AreEqual(
         "2:banana:blueberry",
         DSDropDownBase.SaveSelectedIndexImpl(2, TestList()));
 }
Exemplo n.º 3
0
 public void Save_NothingInList()
 {
     Assert.AreEqual("-1", DSDropDownBase.SaveSelectedIndexImpl(5, new List <DynamoDropDownItem>()));
 }
Exemplo n.º 4
0
 public void Save_NothingSelected()
 {
     Assert.AreEqual(
         "-1",
         DSDropDownBase.SaveSelectedIndexImpl(-1, TestList()));
 }