Ejemplo n.º 1
0
        public void decrease_hunger()
        {
            eater = new Eater(hunger: 10);
            var parameters = new DecreaseHunger(5);

            var result = Eater.Update(EaterMsg.DecreaseHunger, eater, parameters);

            Assert.AreEqual(5, result.hunger);
        }
Ejemplo n.º 2
0
 private static Eater DecreaseHunger(Eater eater, DecreaseHunger parameters)
 {
     return(new Eater(hunger: eater.hunger - parameters.value));
 }