Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXPECT_THAT(unit.OnEndStartup(), ::testing::ElementsAre(
- IsEvent(Result::NoError,Type::S , ""),
- IsEvent(Result::NoError,Type::N , ""),
- IsEvent(Result::NoError,Type::E , ""),
- IsEvent(Result::NoError,Type::C , "")
- ));
- unit.OnEndStartup() returns vector<Info> where struct Info {
- Result result;
- PackageType type;
- std::string newVersion;
- }
- std::array<Info, 4> expected_default_list = {
- EventInfo(Result::NoError, Type::S, ""),
- EventInfo(Result::NoError, Type::N, ""),
- EventInfo(Result::NoError, Type::E, ""),
- EventInfo(Result::NoError, Type::C, "")
- };
- EXPECT_THAT(unit.OnEndStartup(), ::testing::ElementsAreArray(expected_default_list));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement