示例#1
0
 public void should_map_name_and_value_correctly()
 {
     Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt2" && i.Value == "2"));
 }
示例#2
0
 public void should_add_all_page_types_item_on_correct_position()
 {
     Assert.AreEqual("--- Show all ---", ResultListItems.First().Text);
 }
示例#3
0
 public void should_return_collection_with_one_list_item()
 {
     Assert.AreEqual(1, ResultListItems.Count());
 }
示例#4
0
 public void should_have_correct_number_of_page_types()
 {
     Assert.AreEqual(2, ResultListItems.Count());
 }
示例#5
0
 public void should_add_all_page_types_item()
 {
     Assert.IsTrue(
         ResultListItems
         .Any(i => i.Text == "--- Show all ---" && i.Value == PageFilterConstants.ShowAllPageTypes));
 }
示例#6
0
 public void should_not_include_exclusively_globally_defined_page_types()
 {
     Assert.IsFalse(ResultListItems.Any(i => i.Text == "pt1" && i.Value == "1"));
     Assert.IsFalse(ResultListItems.Any(i => i.Text == "pt2" && i.Value == "2"));
 }
示例#7
0
 public void should_use_user_settings()
 {
     Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt3" && i.Value == "3"));
     Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt4" && i.Value == "4"));
 }
示例#8
0
 public void should_not_include_user_defined_page_types()
 {
     Assert.IsFalse(ResultListItems.Any(i => i.Text == "pt4" && i.Value == "4"));
 }
示例#9
0
 public void should_use_global_settings()
 {
     Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt1" && i.Value == "1"));
     Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt2" && i.Value == "2"));
     Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt3" && i.Value == "3"));
 }
示例#10
0
 public void should_not_map_list_item_that_was_not_included_in_string()
 {
     Assert.IsFalse(ResultListItems.Any(i => i.Text == "pt1" && i.Value == "1"));
 }