Exemplo n.º 1
0
        public void Should_Priest_Have_Enough_Mana_For_Resurrection_Throw_Exception()
        {
            var aziel = new Priest(false)
            {
                Mana = 5000
            };

            aziel.Invoking(x => x.Resurrection(10000)).Should().Throw <Exception>()
            .WithMessage("You dont have enough mana for resurrection!");
        }
Exemplo n.º 2
0
        public void Should_Priest_Not_Resurrect_Friend()
        {
            var aziel = new Priest(true)
            {
                Mana = 10000
            };

            aziel.Invoking(x => x.Resurrection(500)).Should().Throw <Exception>().
            WithMessage("You're still in combat!");
        }