Exemple #1
0
        public void CharactersCanDamangeOtherCharacters()
        {
            var attacker = new MeleeFighter();
            var target   = new MeleeFighter();

            attacker.CanDealDamageTo(target).Should().BeSuccessful();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        public void ACharacterCannotDealDamageToItself()
        {
            var character = new MeleeFighter();

            character.CanDealDamageTo(character).Should().BeFailure();
        }