Пример #1
0
        public void Start_WhenCalled_ShouldCallStart()
        {
            _sut = new MonitoredRemoteOperator(_autoLocalConnector, _remoteTraceMonitor, _recorder);

            _sut.Start();

            Mock.Assert(() => _autoLocalConnector.Start(), Occurs.Exactly(1));
        }
Пример #2
0
 public void Start()
 {
     SafeExecution.TryCatch(() => _autoLocalConnector.Start(),
                            exception => _recorder.DefaultException(this, exception));
 }
Пример #3
0
        public void Start_WhenCalled_ShouldExecuteCommandConnect()
        {
            _sut.Start();

            Mock.Assert(() => _connectParser.ExecuteCommand("connect 127.0.0.1:10000"), Occurs.Once());
        }