public void DefaultMaterial_Medium_Masterwork() { // Arrange var armor = new HideArmor(SizeCategory.Medium) { IsMasterwork = true }; // Assert Assert.AreEqual(2, armor.ArmorCheckPenalty()); Assert.AreEqual(165, armor.MundaneMarketPrice()); Assert.AreEqual("Masterwork Hide Armor", armor.ToString()); }
public void DefaultMaterial_Large() { // Arrange var armor = new HideArmor(SizeCategory.Large); // Assert Assert.IsFalse(armor.IsMasterwork); Assert.AreEqual(3, armor.ArmorCheckPenalty()); Assert.AreEqual(4, armor.MaximumDexterityBonus()); Assert.AreEqual(.25, armor.SpeedPenalty); Assert.AreEqual(50, armor.GetWeight()); Assert.AreEqual(30, armor.MundaneMarketPrice()); Assert.AreEqual(Leather.Hardness, armor.Hardness.MaterialHardness); Assert.AreEqual("Hide Armor", armor.ToString()); }
public void Dragonhide_Small() { // Arrange var armor = new HideArmor(SizeCategory.Small, DragonhideColor.Red); // Assert Assert.IsTrue(armor.IsMasterwork); Assert.IsFalse(armor.MasterworkIsToggleable); Assert.AreEqual(2, armor.ArmorCheckPenalty()); Assert.AreEqual(4, armor.MaximumDexterityBonus()); Assert.AreEqual(.25, armor.SpeedPenalty); Assert.AreEqual(12.5, armor.GetWeight()); Assert.AreEqual(330, armor.MundaneMarketPrice()); Assert.AreEqual(Dragonhide.Hardness, armor.Hardness.MaterialHardness); Assert.AreEqual("Red Dragonhide Hide Armor", armor.ToString()); }