Exemple #1
0
        public void TestDisplayMaxEnhancedWeaponItem()
        {
            WeaponItem      weapon      = WeaponItemSmith.OrderItem("Dagger");
            MagicWeaponItem magicWeapon = new MagicWeaponItem(weapon, 5);

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

            Approvals.Verify(DisplayUtilities.BasicMagicalDisplay(magicWeapon));
        }
Exemple #3
0
        public void TestCreateMithralWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");
            ExtraordinaryQualityWeapon mithralWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Mithral");

            Approvals.Verify(DisplayUtilities.BasicDisplay(mithralWeapon));
        }
        public void TestMasterworkOrder()
        {
            WeaponOrder          weapon           = WeaponItemSmith.OrderBlah("Dagger");
            MasterworkWeaponItem masterworkWeapon = WeaponItemSmith.OrderBlah(weapon, "Masterwork");

            Approvals.Verify(masterworkWeapon.ToString());
        }
Exemple #5
0
        public void TestCreateColdIronWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Short Sword");
            ExtraordinaryQualityWeapon ironWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Cold Iron");

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

            Approvals.Verify(DisplayUtilities.BasicDisplay(silverWeapon));
        }
Exemple #7
0
        public void TestLargeSizeWeapon()
        {
            WeaponItem weapon      = WeaponItemSmith.OrderItem("Dagger");
            WeaponItem sizedWeapon = WeaponItemSmith.SizeWeapon(weapon, "Large");

            Approvals.Verify(DisplayUtilities.BasicDisplay(sizedWeapon));
        }
        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));
        }
Exemple #9
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));
        }
Exemple #10
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));
        }
Exemple #11
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");
        }
Exemple #14
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));
        }
Exemple #15
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));
        }