Exemple #1
0
        public void CannotAttack()
        {
            Tribe tribe = new Tribe(10, 3, 2, 10, 6, 1, 2, 3);

            tribe.NewDay();
            tribe.NewDay();
            Assert.IsTrue(tribe.CanAttack());
            tribe.NewDay();
            Assert.IsFalse(tribe.CanAttack());
        }
Exemple #2
0
        public void CreateTribeAndNewDay()
        {
            Tribe tribe = new Tribe(10, 10, 2, 10, 6, 1, 2, 3);

            tribe.NewDay();

            Assert.IsTrue(tribe.CanAttack());
            Assert.AreEqual(11, tribe.Day);
            Assert.AreEqual(9, tribe.Strength);
            Assert.AreEqual(4, tribe.West);
            Assert.AreEqual(12, tribe.East);
        }