public void CanRun_WhenStopped_ReturnsFalse() { // Given: A valid Application Runner // When: StopsRunning is called ApplicationRunner.StopRunning(); // Verify: That CanRun is now false Assert.That(ApplicationRunner.CanRun(), Is.False); }
public void Run() { while (ApplicationRunner.CanRun()) { CommandExecutor.Execute(); } }