Exemple #1
0
        public void FromDate()
        {
            int      numberOfTicks = 4;
            int      minutes       = GameTick.MinutesPerTick * numberOfTicks;
            DateTime newDate       = _time.AddMinutes(minutes);
            GameTick newTick       = GameTick.FromDate(newDate);

            Assert.AreEqual(_tick.GetTick() + numberOfTicks, newTick.GetTick());
            Assert.AreEqual(newDate, newTick.GetDate());
        }