public void DefaultMaterial_Medium_Masterwork() { // Arrange var armor = new LeatherArmor(SizeCategory.Medium) { IsMasterwork = true }; // Assert Assert.AreEqual(0, armor.ArmorCheckPenalty()); Assert.AreEqual(160, armor.MundaneMarketPrice()); Assert.AreEqual("Masterwork Leather Armor", armor.ToString()); }
public void DefaultMaterial_Large() { // Arrange var armor = new LeatherArmor(SizeCategory.Large); // Assert Assert.IsFalse(armor.IsMasterwork); Assert.AreEqual(0, armor.ArmorCheckPenalty()); Assert.AreEqual(6, armor.MaximumDexterityBonus()); Assert.AreEqual(0, armor.SpeedPenalty); Assert.AreEqual(30, armor.GetWeight()); Assert.AreEqual(20, armor.MundaneMarketPrice()); Assert.AreEqual(Leather.Hardness, armor.Hardness.MaterialHardness); Assert.AreEqual("Leather Armor", armor.ToString()); }
public void Dragonhide_Small() { // Arrange var armor = new LeatherArmor(SizeCategory.Small, DragonhideColor.Red); // Assert Assert.IsTrue(armor.IsMasterwork); Assert.IsFalse(armor.MasterworkIsToggleable); Assert.AreEqual(0, armor.ArmorCheckPenalty()); Assert.AreEqual(6, armor.MaximumDexterityBonus()); Assert.AreEqual(0, armor.SpeedPenalty); Assert.AreEqual(7.5, armor.GetWeight()); Assert.AreEqual(320, armor.MundaneMarketPrice()); Assert.AreEqual(Dragonhide.Hardness, armor.Hardness.MaterialHardness); Assert.AreEqual("Red Dragonhide Leather Armor", armor.ToString()); }