예제 #1
0
        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);
        }
예제 #2
0
 public void Run()
 {
     while (ApplicationRunner.CanRun())
     {
         CommandExecutor.Execute();
     }
 }