소스 검색

all: fix ImmunityNegationConditionTest

Konstantin 2 년 전
부모
커밋
42984396ff
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      test/spells/targetConditions/ImmunityNegationConditionTest.cpp

+ 2 - 1
test/spells/targetConditions/ImmunityNegationConditionTest.cpp

@@ -65,7 +65,8 @@ TEST_P(ImmunityNegationConditionTest, WithBattleWideNegation)
 
 	unitBonuses.addNewBonus(std::make_shared<Bonus>(Bonus::ONE_BATTLE, Bonus::NEGATE_ALL_NATURAL_IMMUNITIES, Bonus::OTHER, 0, 0, 0));
 
-	EXPECT_EQ(!ownerMatches, subject->isReceptive(&mechanicsMock, &unitMock));
+	//This should return if ownerMatches, because anyone should cast onto owner's stacks, but not on enemyStacks
+	EXPECT_EQ(ownerMatches, subject->isReceptive(&mechanicsMock, &unitMock));
 }
 
 INSTANTIATE_TEST_SUITE_P