Beispiel #1
0
        public void OpponentGetHitInAnEncounter_OnAttack()
        {
            // Arrange.
            var opponent            = new SpaceShipSpy();
            var player              = SpaceShipWithTwoFunctionalWeaponStubs();
            var randomNumberService = AlwaysMaxRandomNumber();
            var encounter           = new Encounter(player, opponent, randomNumberService);

            // Act.
            encounter.Attack();

            // Assert.
            Assert.That(opponent.HitsCount, Is.EqualTo(2));
        }
        public void OpponentGetHitInAnEncounter_OnAttack()
        {
            // Arrange
            var opponent = new SpaceShipSpy();
            var player = SpaceShipWithTwoFunctionalWeaponStubs();
            var randomNumberService = AlwaysMaxRandomNumber();
            var encounter = new Encounter(player, opponent, randomNumberService);

            // Act
            encounter.Attack();

            // Assert
            Assert.That(opponent.HitsCount, Is.EqualTo(2));
        }