Beispiel #1
0
        public void TestCreateMithralWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");
            ExtraordinaryQualityWeapon mithralWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Mithral");

            Approvals.Verify(DisplayUtilities.BasicDisplay(mithralWeapon));
        }
Beispiel #2
0
        public void TestCreateColdIronWeapon()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Short Sword");
            ExtraordinaryQualityWeapon ironWeapon = WeaponItemSmith.OrderSpecialComponent(weapon, "Cold Iron");

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

            Approvals.Verify(DisplayUtilities.BasicDisplay(silverWeapon));
        }
Beispiel #4
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));
        }
Beispiel #5
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));
        }
        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 TestExtraordinaryComponentNotInListThrowsException()
        {
            WeaponItem weapon = WeaponItemSmith.OrderItem("Dagger");

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

            WeaponItemSmith.OrderSpecialComponent(weapon, string.Empty);
        }