public void DeveConseguirPausarPartida() { stats.Start(); Thread.Sleep(50); var x = stats.Duration.Ticks; Assert.IsTrue(x > 0, $"A duração do jogo estava em {x}"); stats.Pause(); x = stats.Duration.Ticks; Thread.Sleep(50); Assert.AreEqual(x, stats.Duration.Ticks); }
public void Pause() { State = new PausedState(); Stats.Pause(); }