Exemple #1
0
        public void TestHuman_BuyFood_DecreasesBalance()
        {
            Human human = new Adult();

            human.GetOccupation(1);
            human.Occupation.GetSalary(human);
            int tempBalance = human.Balance;

            human.BuyFood();

            Assert.IsTrue(human.Balance < tempBalance);
        }
Exemple #2
0
        public void TestHuman_EatFood_IncreasesHunger()
        {
            Human human = new Adult();

            human.GetOccupation(1);
            human.Occupation.GetSalary(human);

            human.ReduceHunger(50);
            human.BuyFood();
            human.EatFood();

            Assert.IsTrue(human.Hunger > 50);
        }