public void RegisterTest() { shutdownAll(); string value = null; var pid = spawn <string>("reg-proc", msg => value = msg); var regid = reg("woooo amazing", pid); Assert.IsTrue(Registered.Count() == 1); Assert.IsTrue(Registered.First().Value == "/root/system/registered/woooo amazing"); tell(regid, "hello"); Thread.Sleep(100); Assert.IsTrue(value == "hello"); Thread.Sleep(100); unreg("woooo amazing"); Thread.Sleep(100); Assert.IsTrue(Registered.Count() == 0); }