Example #1
0
        public void Enchantery_Enchant_WeaponSuccess()
        {
            IResult result = enchantery.Enchant(weapon.Object);

            Assert.IsTrue(enchantments.Count == 1);
            Assert.IsFalse(result.AllowAnotherCommand);
            Assert.AreEqual("The item begins to glow and then flashes a bright light.  The item continues to have a faint glow and hum slightly.", result.ResultMessage);
        }
Example #2
0
        public void Enchantery_Enchant_WeaponSuccess()
        {
            tagWrapper.Setup(e => e.WrapInTag("The item begins to glow and then flashes a bright light.  The item continues to have a faint glow and hum slightly.", TagType.Info)).Returns("success");

            IResult result = enchantery.Enchant(weapon.Object);

            Assert.IsTrue(enchantments.Count == 1);
            Assert.IsTrue(result.ResultSuccess);
            Assert.AreEqual("success", result.ResultMessage);
        }