public void Finish() { OnRefresh?.Invoke(); Stats.Finish(); State = new FinishedState(); OnFinish?.Invoke(); }
public void DevePararDeContabilizarTempoAoTerminarPartida() { DeveContabilizarTempoDaPartida(); stats.Finish(); var x = stats.Duration.Ticks; Thread.Sleep(50); Assert.AreEqual(x, stats.Duration.Ticks); }