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

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

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

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

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

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

            Approvals.Verify(DisplayUtilities.BasicDisplay(silverWeapon));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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");
        }
Esempio n. 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));
        }
Esempio n. 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);
 }
Esempio n. 20
0
        public void TestWeaponOrder()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");

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