public void OnHostStart_RegistersProcessWithMonitor() { Process process = Process.GetCurrentProcess(); _rpcWorkerProcess.Process = process; _hostProcessMonitorMock.Setup(p => p.RegisterChildProcess(process)); HostStartEvent evt = new HostStartEvent(); _rpcWorkerProcess.OnHostStart(evt); _hostProcessMonitorMock.Verify(p => p.RegisterChildProcess(process), Times.Once); }