Exemple #1
0
        public void ForwardDayChangesInPlanet_AddMonth()
        {
            IDateAndTime date = new DateAndTime();
            Galaxy       g    = new Galaxy();

            g.CreateNormalGalaxy();
            //One day changes
            DateTime result = date.AddMonths(g, 1);

            Assert.AreEqual(result, new DateTime(2492, 6, 6, 1, 0, 0));
            //0 days changes
            result = date.AddMonths(g, 0);
            Assert.AreEqual(result, new DateTime(2492, 6, 6, 1, 0, 0));
        }
 private void Button3_Click(object sender, EventArgs e)
 {
     _date.AddMonths(_galaxy, 1);
     this.Invalidate();
 }