Ejemplo n.º 1
0
        public void Adamantine_Small_Default()
        {
            // Arrange
            var armor = new Breastplate(SizeCategory.Small, BreastplateMaterial.Adamantine);

            // Assert
            Assert.IsTrue(armor.IsMasterwork);
            Assert.IsFalse(armor.MasterworkIsToggleable);
            Assert.AreEqual(6, armor.GetArmorBonus());
            Assert.AreEqual(3, armor.ArmorCheckPenalty());
            Assert.AreEqual(3, armor.MaximumDexterityBonus());
            Assert.AreEqual(10_200, armor.GetMarketPrice());
            Assert.AreEqual(15, armor.GetWeight());
            Assert.AreEqual(0.25, armor.SpeedPenalty);
            Assert.AreEqual("Adamantine Breastplate", armor.ToString());
        }
Ejemplo n.º 2
0
        public void Dragonhide_Large()
        {
            // Arrange
            var armor = new Breastplate(SizeCategory.Large, DragonhideColor.Red);

            // Assert
            Assert.IsTrue(armor.IsMasterwork);
            Assert.IsFalse(armor.MasterworkIsToggleable);
            Assert.AreEqual(3, armor.ArmorCheckPenalty());
            Assert.AreEqual(3, armor.MaximumDexterityBonus());
            Assert.AreEqual(.25, armor.SpeedPenalty);
            Assert.AreEqual(60, armor.GetWeight());
            Assert.AreEqual(1100, armor.MundaneMarketPrice());
            Assert.AreEqual(Dragonhide.Hardness, armor.Hardness.MaterialHardness);
            Assert.AreEqual("Red Dragonhide Breastplate", armor.ToString());
        }
Ejemplo n.º 3
0
        public void Steel_Large()
        {
            // Arrange
            var armor = new Breastplate(SizeCategory.Large, BreastplateMaterial.Steel);

            // Assert
            Assert.IsFalse(armor.IsMasterwork);
            Assert.IsTrue(armor.MasterworkIsToggleable);
            Assert.AreEqual(6, armor.GetArmorBonus());
            Assert.AreEqual(4, armor.ArmorCheckPenalty());
            Assert.AreEqual(3, armor.MaximumDexterityBonus());
            Assert.AreEqual(400, armor.GetMarketPrice());
            Assert.AreEqual(60, armor.GetWeight());
            Assert.AreEqual(.25, armor.SpeedPenalty);
            Assert.AreEqual("Breastplate", armor.ToString());
        }
Ejemplo n.º 4
0
        public void Mithral_Medium()
        {
            // Arrange
            var armor = new Breastplate(SizeCategory.Medium, BreastplateMaterial.Mithral);

            // Assert
            Assert.IsTrue(armor.IsMasterwork);
            Assert.IsFalse(armor.MasterworkIsToggleable);
            Assert.AreEqual(6, armor.GetArmorBonus());
            Assert.AreEqual(1, armor.ArmorCheckPenalty());
            Assert.AreEqual(5, armor.MaximumDexterityBonus());
            Assert.AreEqual(4200, armor.GetMarketPrice());
            Assert.AreEqual(15, armor.GetWeight());
            Assert.AreEqual(0, armor.SpeedPenalty);
            Assert.AreEqual("Mithral Breastplate", armor.ToString());
        }