1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +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

@ -36,7 +36,10 @@ TEST_F(CArtifactTest, RegistersIcons)
subject->image = "Test1";
subject->large = "Test2";
auto cb = std::bind(&CArtifactTest::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), "ARTIFACT", "Test1"));
EXPECT_CALL(*this, registarCb(Eq(4242), Eq(0), "ARTIFACTLARGE", "Test2"));