Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. [Test]
  2. public void global_list_paths_with_blank_entries_resolve_to_the_same_path_with_out_a_blank_entry()
  3. {
  4. var familyWithHardwarePath = ClarifyApplication.Instance.ListCache.GetHgbstList("FAMILY", new string[] {"Hardware"});
  5. familyWithHardwarePath.Count.ShouldBeGreaterThan(0);
  6.  
  7. var familyWithHardwareThenBlankPath = ClarifyApplication.Instance.ListCache.GetHgbstList("FAMILY", new string[] { "Hardware", "" });
  8. familyWithHardwareThenBlankPath.Count.ShouldEqual(familyWithHardwarePath.Count);
  9. }
  10.  
  11. [Test]
  12. public void global_list_paths_containing_titles_that_are_not_present_in_the_list_should_throw_an_exception()
  13. {
  14. var listCache = ClarifyApplication.Instance.ListCache;
  15.  
  16. typeof(ClarifyException).ShouldBeThrownBy(()=>
  17. listCache.GetHgbstList("FAMILY", new string[] { "Invalid Path Title" })
  18. );
  19. }
  20.  
  21.  
  22. [Test]
  23. public void global_list_title_that_is_not_present_in_the_list_cache_should_throw_an_exception()
  24. {
  25. var listCache = ClarifyApplication.Instance.ListCache;
  26.  
  27. typeof(ClarifyException).ShouldBeThrownBy(() =>
  28. listCache.GetHgbstList("LIST DOES NOT EXIST")
  29. );
  30. }
Add Comment
Please, Sign In to add comment