TEST(MessageTest, Join) { CJoinMessage msg; msg.Parse(":nick JOIN #chan"); EXPECT_EQ("nick", msg.GetNick().GetNick()); EXPECT_EQ("JOIN", msg.GetCommand()); EXPECT_EQ("#chan", msg.GetTarget()); EXPECT_EQ(CMessage::Type::Join, msg.GetType()); EXPECT_EQ(":nick JOIN #chan", msg.ToString()); }
void OnJoinMessage(CJoinMessage& msg) override { vsHooks.push_back("OnJoinMessage"); vsMessages.push_back(msg.ToString()); vNetworks.push_back(msg.GetNetwork()); vChannels.push_back(msg.GetChan()); }