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

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

            Assert.AreEqual(result, new DateTime(2492, 5, 7, 1, 0, 0));
            //0 days changes
            result = date.AddDays(g, 0);
            Assert.AreEqual(result, new DateTime(2492, 5, 7, 1, 0, 0));
        }
Example #2
0
 private void Button5_Click(object sender, EventArgs e)
 {
     _date.AddDays(_galaxy, 1);
     this.Invalidate();
 }