public void SetUp() { RepMonitor.Closed += RecordEvent; Rep.Bind("tcp://*:9000"); Req.Connect("tcp://127.0.0.1:9000"); Rep.Close(); EventRecorded.WaitOne(1000); }