public void CharactersCanDamangeOtherCharacters() { var attacker = new MeleeFighter(); var target = new MeleeFighter(); attacker.CanDealDamageTo(target).Should().BeSuccessful(); }
public void AlliesCannotDealDamageToOneAnother() { var player1 = new MeleeFighter(); var player2 = new MeleeFighter(); player1.JoinFaction("a"); player2.JoinFaction("a"); player1.CanDealDamageTo(player2).Should().BeFailure(); player2.CanDealDamageTo(player1).Should().BeFailure(); }
public void ACharacterCannotDealDamageToItself() { var character = new MeleeFighter(); character.CanDealDamageTo(character).Should().BeFailure(); }