public void TestThatOneHandedMacesCannotBeEquippedWithQuivers() { EquipmentClass firstTestCandidate = new OneHandedMace(); EquipmentClass secondTestCandidate = new OneHandedMace(); TestThatOneHandedWeaponCannotBeEquippedWithQuivers(firstTestCandidate, secondTestCandidate); }
public void TestThatOffhandOneHandedMacesCanOnlyBeEquippedWithOneHandedWeapons() { EquipmentClass offHand = new OneHandedMace(); EquipmentClass secondOffHandInstance = new OneHandedMace(); TestThatOffHanderCanOnlyBeEquippedWithOneHander(offHand, secondOffHandInstance); }
public void TestThatOneHandedMacesCanBeEquippedWithShieldsAndForceShields() { EquipmentClass firstTestCandidate = new OneHandedMace(); EquipmentClass secondTestCandidate = new OneHandedMace(); TestThatOneHandedWeaponCanBeEquippedWithShieldAndForceShield(firstTestCandidate, secondTestCandidate); }
private void TestThatTwoHandedWeaponsCannotBeEquippedWithOffHands(EquipmentClass testCandidate) { PlayerEquipmentSlots playerEquipment = new PlayerEquipmentSlots(); EquipmentClass offHand = new OneHandedSword(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); EquipmentClass mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); offHand = new OneHandedMace(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); offHand = new Wand(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); offHand = new Shield(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); offHand = new ForceShield(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); offHand = new ArrowQuiver(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); offHand = new BoltQuiver(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); }
private void TestThatMainHandEquipmentCanBeEquippedWithMace(EquipmentClass testCandidate, PlayerEquipmentSlots playerEquipment) { EquipmentClass offHandMace = new OneHandedMace(); playerEquipment.EquipInOffHand(offHandMace); playerEquipment.EquipInMainHand(testCandidate); EquipmentClass mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.EqualTo(testCandidate)); }
public void TestThatOneHandedMacesCanBeEquippedWithOneHandedWeaponsInOffHand() { PlayerEquipmentSlots playerEquipment = new PlayerEquipmentSlots(); EquipmentClass testCandidate = new OneHandedMace(); TestThatMainHandEquipmentCanBeEquippedWithSword(testCandidate, playerEquipment); testCandidate = new OneHandedMace(); TestThatMainHandEquipmentCanBeEquippedWithMace(testCandidate, playerEquipment); testCandidate = new OneHandedMace(); TestThatMainHandEquipmentCanBeEquippedWithWand(testCandidate, playerEquipment); }
public void TestThatCrossBowsCannotBeEquippedWithWeaponsOrShields() { PlayerEquipmentSlots playerEquipment = new PlayerEquipmentSlots(); EquipmentClass testCandidate = new CrossBow(); EquipmentClass offHand = new OneHandedSword(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); EquipmentClass mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); testCandidate = new CrossBow(); offHand = new OneHandedMace(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); testCandidate = new CrossBow(); offHand = new Wand(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); testCandidate = new CrossBow(); offHand = new Shield(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); testCandidate = new CrossBow(); offHand = new ForceShield(); playerEquipment.EquipInOffHand(offHand); playerEquipment.EquipInMainHand(testCandidate); mainHandEquipment = playerEquipment.GetMainHandEquipment(); Assert.That(mainHandEquipment, Is.Null); }
public void TestThatOneHandedMaceCanBeEquippedInMainHandWithNothingPresent() { EquipmentClass testCandidate = new OneHandedMace(); EquipInMainHandAndTestThatItIsOccupied(testCandidate); }
public void TestThatBoltQuiverCannotBeEquippedWhenNonCrossBowIsInMainHand() { PlayerEquipmentSlots playerEquipment = new PlayerEquipmentSlots(); EquipmentClass mainHandEquipment = new OneHandedSword(); EquipmentClass offHand = new BoltQuiver(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); EquipmentClass offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new OneHandedMace(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new Wand(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new TwoHandedSword(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new TwoHandedMace(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new MagicStaff(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new Bow(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new CrossBow(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(offHand); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.EqualTo(offHand)); }
public void TestThatOneHandedMaceCanBeEquippedInOffHandWithNothingPresent() { EquipmentClass testCandidate = new OneHandedMace(); TestThatGivenEquipmentCanBeEequippedInOffHandSlot(testCandidate); }
private void TestThatOffHanderCanOnlyBeEquippedWithOneHander(EquipmentClass firstOffHanderInstance, EquipmentClass secondOffHanderInstance) { PlayerEquipmentSlots playerEquipment = new PlayerEquipmentSlots(); EquipmentClass mainHandEquipment = new TwoHandedSword(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); EquipmentClass offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new TwoHandedMace(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new MagicStaff(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new Bow(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new CrossBow(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.Null); mainHandEquipment = new OneHandedSword(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.EqualTo(firstOffHanderInstance)); mainHandEquipment = new OneHandedMace(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(secondOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.EqualTo(secondOffHanderInstance)); mainHandEquipment = new Wand(); playerEquipment.EquipInMainHand(mainHandEquipment); playerEquipment.EquipInOffHand(firstOffHanderInstance); offHandEquipment = playerEquipment.GetOffHandEquipment(); Assert.That(offHandEquipment, Is.EqualTo(firstOffHanderInstance)); }