示例#1
0
        public void TestLargeSizeWeapon()
        {
            WeaponItem weapon      = WeaponItemSmith.OrderItem("Dagger");
            WeaponItem sizedWeapon = WeaponItemSmith.SizeWeapon(weapon, "Large");

            Approvals.Verify(DisplayUtilities.BasicDisplay(sizedWeapon));
        }
示例#2
0
        public void TestCreateMithralWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");
            ExtraordinaryQualityWeapon mithralWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Mithral");

            Approvals.Verify(DisplayUtilities.BasicDisplay(mithralWeapon));
        }
示例#3
0
        public void TestDisplayMaxEnhancedWeaponItem()
        {
            WeaponItem      weapon      = WeaponItemSmith.OrderItem("Dagger");
            MagicWeaponItem magicWeapon = new MagicWeaponItem(weapon, 5);

            Approvals.Verify(DisplayUtilities.FullMagicalDisplay(magicWeapon));
        }
示例#4
0
        public void TestCreateMagicWeapon()
        {
            WeaponItem      weapon      = WeaponItemSmith.OrderItem("Dagger");
            MagicWeaponItem magicWeapon = new MagicWeaponItem(weapon, 1);

            Approvals.Verify(DisplayUtilities.BasicMagicalDisplay(magicWeapon));
        }
示例#5
0
        public void TestCreateColdIronWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Short Sword");
            ExtraordinaryQualityWeapon ironWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Cold Iron");

            Approvals.Verify(DisplayUtilities.BasicDisplay(ironWeapon));
        }
示例#6
0
        public void TestCreateAlchemicalSilverWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");
            ExtraordinaryQualityWeapon silverWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Silver");

            Approvals.Verify(DisplayUtilities.BasicDisplay(silverWeapon));
        }
示例#7
0
        public void TestCreateMagicDarkwoodWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");
            ExtraordinaryQualityWeapon darkwoodWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Darkwood");
            MagicWeaponItem            magicWeapon    = new MagicWeaponItem(darkwoodWeapon, 1);

            Approvals.Verify(DisplayUtilities.BasicMagicalDisplay(magicWeapon));
        }
示例#8
0
        public void TestLargePlus3Weapon()
        {
            WeaponItem      weapon      = WeaponItemSmith.OrderItem("Dagger");
            WeaponItem      sizedWeapon = WeaponItemSmith.SizeWeapon(weapon, "Large");
            MagicWeaponItem magicWeapon = new MagicWeaponItem(sizedWeapon, 3);

            Approvals.Verify(DisplayUtilities.FullMagicalDisplay(magicWeapon));
        }
        public void TestWeaponEnchanter()
        {
            WeaponItem          weapon          = WeaponItemSmith.OrderItem("Dagger");
            MagicWeaponItem     magicWeapon     = new MagicWeaponItem(weapon, 1);
            EnchantedWeaponItem enchantedWeapon = WeaponEnchanter.RequestEnchantment(magicWeapon, "Flaming");

            Approvals.Verify(DisplayUtilities.FullMagicalDisplay(enchantedWeapon));
        }
示例#10
0
        public void TestSmallAdamantineWeapon()
        {
            var weapon           = WeaponItemSmith.OrderItem("Dagger");
            var sizedWeapon      = WeaponItemSmith.SizeWeapon(weapon, "Small");
            var adamantineWeapon = WeaponItemSmith.OrderSpecialComponent(sizedWeapon, "Adamantine");

            Approvals.Verify(DisplayUtilities.BasicDisplay(adamantineWeapon));
        }
        public void TestFlamingMithralItem()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");
            ExtraordinaryQualityWeapon mithralWeapon   = WeaponItemSmith.OrderSpecialComponent(weapon, "Mithral");
            MagicWeaponItem            magicWeapon     = new MagicWeaponItem(mithralWeapon, 1);
            EnchantedWeaponItem        enchantedWeapon = WeaponEnchanter.RequestEnchantment(magicWeapon, "Flaming");

            Approvals.Verify(DisplayUtilities.FullMagicalDisplay(enchantedWeapon));
        }
        public void TestEnhancementBonusIsMoreThanPlusTen()
        {
            WeaponItem          weapon         = WeaponItemSmith.OrderItem("Dagger");
            MagicWeaponItem     magicWeapon    = new MagicWeaponItem(weapon, 5);
            EnchantedWeaponItem flamingWeapon  = WeaponEnchanter.RequestEnchantment(magicWeapon, "Flaming");
            EnchantedWeaponItem icyBurstWeapon = WeaponEnchanter.RequestEnchantment(flamingWeapon, "Icy Burst");

            WeaponEnchanter.RequestEnchantment(icyBurstWeapon, "Vorpal");
        }
示例#13
0
        public void TestLargePlus3FlamingWeapon()
        {
            WeaponItem          weapon          = WeaponItemSmith.OrderItem("Dagger");
            WeaponItem          sizedWeapon     = WeaponItemSmith.SizeWeapon(weapon, "Large");
            MagicWeaponItem     magicWeapon     = new MagicWeaponItem(sizedWeapon, 3);
            EnchantedWeaponItem enchantedWeapon = WeaponEnchanter.RequestEnchantment(magicWeapon, "Flaming");

            Approvals.Verify(DisplayUtilities.FullMagicalDisplay(enchantedWeapon));
        }
示例#14
0
        public void TestCreateWeapon()
        {
            var weapon = WeaponItemSmith.OrderItem("Dagger");

            Approvals.Verify(DisplayUtilities.BasicDisplay(weapon));
        }
        public void TestExtraordinaryComponentNotInListThrowsException()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");

            WeaponItemSmith.OrderSpecialComponent(weapon, "Shiny Thing");
        }
        public void TestExtraordinaryNameEmptyThrowsError()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");

            WeaponItemSmith.OrderSpecialComponent(weapon, string.Empty);
        }
        public void TestMagicEnhancementLessThanOneThrowsError()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");

            new MagicWeaponItem(weapon, -1);
        }
 public void TestWeaponNotInListThrowsException()
 {
     WeaponItemSmith.OrderItem("Awesome Blade");
 }
 public void TestWeaponNameEmptyThrowsError()
 {
     WeaponItemSmith.OrderItem(string.Empty);
 }
        public void TestWeaponOrder()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");

            Approvals.Verify(DisplayUtilities.BasicDisplay(weapon));
        }