public void Start_WhenCalled_ShouldCallStart() { _sut = new MonitoredRemoteOperator(_autoLocalConnector, _remoteTraceMonitor, _recorder); _sut.Start(); Mock.Assert(() => _autoLocalConnector.Start(), Occurs.Exactly(1)); }
public void Start() { SafeExecution.TryCatch(() => _autoLocalConnector.Start(), exception => _recorder.DefaultException(this, exception)); }
public void Start_WhenCalled_ShouldExecuteCommandConnect() { _sut.Start(); Mock.Assert(() => _connectParser.ExecuteCommand("connect 127.0.0.1:10000"), Occurs.Once()); }