public void TestTick() { res.Tick(); Assert.AreEqual(res.Current, 500 + 100); res.Current = 950; res.Tick(); Assert.AreEqual(res.Current, res.Cap); }
/// <summary> /// Signal the end of a day, increase all resources value /// </summary> public void Tick() { Metal.Tick(); Crystal.Tick(); Energy.Tick(); }