Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void global_list_paths_with_blank_entries_resolve_to_the_same_path_with_out_a_blank_entry()
- {
- var familyWithHardwarePath = ClarifyApplication.Instance.ListCache.GetHgbstList("FAMILY", new string[] {"Hardware"});
- familyWithHardwarePath.Count.ShouldBeGreaterThan(0);
- var familyWithHardwareThenBlankPath = ClarifyApplication.Instance.ListCache.GetHgbstList("FAMILY", new string[] { "Hardware", "" });
- familyWithHardwareThenBlankPath.Count.ShouldEqual(familyWithHardwarePath.Count);
- }
- [Test]
- public void global_list_paths_containing_titles_that_are_not_present_in_the_list_should_throw_an_exception()
- {
- var listCache = ClarifyApplication.Instance.ListCache;
- typeof(ClarifyException).ShouldBeThrownBy(()=>
- listCache.GetHgbstList("FAMILY", new string[] { "Invalid Path Title" })
- );
- }
- [Test]
- public void global_list_title_that_is_not_present_in_the_list_cache_should_throw_an_exception()
- {
- var listCache = ClarifyApplication.Instance.ListCache;
- typeof(ClarifyException).ShouldBeThrownBy(() =>
- listCache.GetHgbstList("LIST DOES NOT EXIST")
- );
- }
Add Comment
Please, Sign In to add comment