Exemple #1
0
        public void Add_A_Prefix_To_The_Weapon_Name()
        {
            var durance = new Durance();
            var dagger  = new Weapon("dagger of the nooblet");

            durance.EnchantWeapon(dagger);

            Assert.AreEqual("Inferno dagger of the nooblet", dagger.Name);
        }
Exemple #2
0
        public void Replace_An_Existing_Enchantment()
        {
            var durance = new Durance();
            var dagger  = new Weapon("dagger of the nooblet");

            durance.EnchantWeapon(dagger);
            durance.EnchantWeapon(dagger);

            Assert.AreEqual("Inferno dagger of the nooblet", dagger.Name);
        }