Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. EXPECT_THAT(unit.OnEndStartup(), ::testing::ElementsAre(
  2. IsEvent(Result::NoError,Type::S , ""),
  3. IsEvent(Result::NoError,Type::N , ""),
  4. IsEvent(Result::NoError,Type::E , ""),
  5. IsEvent(Result::NoError,Type::C , "")
  6. ));
  7.  
  8. unit.OnEndStartup() returns vector<Info> where struct Info {
  9. Result result;
  10. PackageType type;
  11. std::string newVersion;
  12. }
  13.  
  14. std::array<Info, 4> expected_default_list = {
  15. EventInfo(Result::NoError, Type::S, ""),
  16. EventInfo(Result::NoError, Type::N, ""),
  17. EventInfo(Result::NoError, Type::E, ""),
  18. EventInfo(Result::NoError, Type::C, "")
  19. };
  20.  
  21.  
  22. EXPECT_THAT(unit.OnEndStartup(), ::testing::ElementsAreArray(expected_default_list));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement