public void should_map_name_and_value_correctly() { Assert.IsTrue(ResultListItems.Any(i => i.Text == "pt2" && i.Value == "2")); }
public void should_add_all_page_types_item_on_correct_position() { Assert.AreEqual("--- Show all ---", ResultListItems.First().Text); }
public void should_return_collection_with_one_list_item() { Assert.AreEqual(1, ResultListItems.Count()); }
public void should_have_correct_number_of_page_types() { Assert.AreEqual(2, ResultListItems.Count()); }
public void should_add_all_page_types_item() { Assert.IsTrue( ResultListItems .Any(i => i.Text == "--- Show all ---" && i.Value == PageFilterConstants.ShowAllPageTypes)); }
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")); }
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")); }
public void should_not_include_user_defined_page_types() { Assert.IsFalse(ResultListItems.Any(i => i.Text == "pt4" && i.Value == "4")); }
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")); }
public void should_not_map_list_item_that_was_not_included_in_string() { Assert.IsFalse(ResultListItems.Any(i => i.Text == "pt1" && i.Value == "1")); }