示例#1
0
 public void Finish()
 {
     OnRefresh?.Invoke();
     Stats.Finish();
     State = new FinishedState();
     OnFinish?.Invoke();
 }
示例#2
0
        public void DevePararDeContabilizarTempoAoTerminarPartida()
        {
            DeveContabilizarTempoDaPartida();
            stats.Finish();
            var x = stats.Duration.Ticks;

            Thread.Sleep(50);
            Assert.AreEqual(x, stats.Duration.Ticks);
        }