Esempio n. 1
0
        public void ShieldCapacityWorks()
        {
            Outpost outpost = new Outpost(new RftVector(_map, 0, 0), new Player(1), OutpostType.Mine);

            outpost.SetShieldCapacity(100);
            outpost.SetShields(5);
            outpost.AddShield(100);

            Assert.AreEqual(outpost.GetShieldCapacity(), outpost.GetShields());

            outpost.SetShields(105);
            Assert.AreEqual(outpost.GetShieldCapacity(), outpost.GetShields());
        }