public void Setup() { id = new byte[20]; id[1] = 128; n = new Node(new NodeId(id), new System.Net.IPEndPoint(IPAddress.Any, 0)); table = new RoutingTable(n); table.NodeAdded += delegate { addedCount++; }; table.Add(n);//the local node is no more in routing table so add it to show test is still ok addedCount = 0; }