public void Start_with_minus_d_should_wait_for_a_debugger()
        {
            var mockDebugerFacade = new MockDebugerFacade();
            var server = new NukeServer(_listener, new Options("-d"), mockDebugerFacade);

            server.Start();

            Assert.That(_listener.StartCalled);
            Assert.That(mockDebugerFacade.HasWaitBeenCalled());
        }
        public void Start_with_and_wait_for_a_debugger()
        {
            var mockDebuggerFacade = new MockDebugerFacade();
            var server = new NukeServer(_listener, new Options(), mockDebuggerFacade);

            server.WaitForDebugerAndRun();

            Assert.That(_listener.StartCalled);
            Assert.That(mockDebuggerFacade.HasWaitBeenCalled());
        }