SHARE
TWEET

Untitled

a guest Jun 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top