public void Medium_Wood_Default() { // Arrange var shield = new HeavyShield(SizeCategory.Medium, HeavyShieldMaterial.Wood); // Assert Assert.IsFalse(shield.IsMasterwork); Assert.AreEqual(10, shield.GetWeight()); Assert.AreEqual(Wood.Hardness, shield.GetHardness()); Assert.AreEqual(15, shield.GetHitPoints()); Assert.AreEqual(7, shield.GetMarketPrice()); Assert.AreEqual(2, shield.GetArmorCheckPenalty()); Assert.AreEqual("Heavy Wooden Shield", shield.ToString()); }
public void Large_Steel_Default() { // Arrange var shield = new HeavyShield(SizeCategory.Large, HeavyShieldMaterial.Steel); // Assert Assert.IsFalse(shield.IsMasterwork); Assert.AreEqual(30, shield.GetWeight()); Assert.AreEqual(Steel.Hardness, shield.GetHardness()); Assert.AreEqual(40, shield.GetHitPoints()); Assert.AreEqual(40, shield.GetMarketPrice()); Assert.AreEqual(2, shield.GetArmorCheckPenalty()); Assert.AreEqual("Heavy Steel Shield", shield.ToString()); }
public void Large_Dragonhide_Default() { // Arrange var shield = new HeavyShield(SizeCategory.Large, DragonhideColor.Red); // Assert Assert.IsTrue(shield.IsMasterwork); Assert.IsFalse(shield.MasterworkIsToggleable); Assert.AreEqual(20, shield.GetWeight()); Assert.AreEqual(Dragonhide.Hardness, shield.GetHardness()); Assert.AreEqual(30, shield.GetHitPoints()); Assert.AreEqual(328, shield.GetMarketPrice()); Assert.AreEqual(1, shield.GetArmorCheckPenalty()); Assert.AreEqual("Red Dragonhide Heavy Shield", shield.ToString()); }
public void Large_Mithral_Default() { // Arrange var shield = new HeavyShield(SizeCategory.Large, HeavyShieldMaterial.Mithral); // Assert Assert.IsTrue(shield.IsMasterwork); Assert.IsFalse(shield.MasterworkIsToggleable); Assert.AreEqual(15, shield.GetWeight()); Assert.AreEqual(Mithral.Hardness, shield.GetHardness()); Assert.AreEqual(40, shield.GetHitPoints()); Assert.AreEqual(1040, shield.GetMarketPrice()); Assert.AreEqual(0, shield.GetArmorCheckPenalty()); Assert.AreEqual("Mithral Heavy Shield", shield.ToString()); }
public void Medium_Darkwood_Default() { // Arrange var shield = new HeavyShield(SizeCategory.Medium, HeavyShieldMaterial.Darkwood); // Assert Assert.IsTrue(shield.IsMasterwork); Assert.IsFalse(shield.MasterworkIsToggleable); Assert.AreEqual(5, shield.GetWeight()); Assert.AreEqual(Darkwood.Hardness, shield.GetHardness()); Assert.AreEqual(15, shield.GetHitPoints()); Assert.AreEqual(257, shield.GetMarketPrice()); Assert.AreEqual(0, shield.GetArmorCheckPenalty()); Assert.AreEqual("Darkwood Heavy Shield", shield.ToString()); }