コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }