1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

vcmi: entity tests passed

This commit is contained in:
Konstantin
2023-02-28 14:59:02 +03:00
committed by Konstantin P
parent 2680046dd0
commit 56601a0c2a
6 changed files with 33 additions and 7 deletions

View File

@ -39,7 +39,10 @@ TEST_F(CHeroTest, RegistersIcons)
subject->portraitSmall = "Test3";
subject->portraitLarge = "Test4";
auto cb = std::bind(&CHeroTest::registarCb, this, _1, _2, _3, _4);
auto cb = [this](auto && PH1, auto && PH2, auto && PH3, auto && PH4)
{
registarCb(std::forward<decltype(PH1)>(PH1), std::forward<decltype(PH2)>(PH2), std::forward<decltype(PH3)>(PH3), std::forward<decltype(PH4)>(PH4));
};
EXPECT_CALL(*this, registarCb(Eq(4242), Eq(0), "UN32", "Test1"));
EXPECT_CALL(*this, registarCb(Eq(4242), Eq(0), "UN44", "Test2"));