public void NoWeaponSlotsAvailable_AfterWeaponIsEquiped()
 {
     // Arrange
     SpaceShip spaceShip = SpaceShipWithSingleWeaponSlot();
     IWeapon weapon = new DummyWeapon();
     // Act
     spaceShip.Equip(weapon);
     // Assert
     var noWeaponSlotsAvailable = spaceShip.AvailableWeaponSlots == 0;
     Assert.That(noWeaponSlotsAvailable);
 }
示例#2
0
        public void NoWeaponSlotsAvailable_AfterWeaponIsEquiped()
        {
            // Arrange
            SpaceShip spaceShip = SpaceShipWithSingleWeaponSlot();
            IWeapon   weapon    = new DummyWeapon();

            // Act
            spaceShip.Equip(weapon);
            // Assert
            var noWeaponSlotsAvailable = spaceShip.AvailableWeaponSlots == 0;

            Assert.That(noWeaponSlotsAvailable);
        }
示例#3
0
        public void NoWeaponSlotsAvailable_AfterWeaponIsEquiped()
        {
            // Arrange.
            var     spaceShip = SpaceShipWithSingleWeaponSlot();
            IWeapon weapon    = new DummyWeapon();

            // Act.
            spaceShip.Equip(weapon);

            // Assert.
            bool noWeaponSlotsAvailable = 0 == spaceShip.AvailableWeaponSlots;

            Assert.True(noWeaponSlotsAvailable);
        }