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); }
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); }