public void TestPutAndGet() { IDht dht = new LocalHT(); dht.Put("key1", "value1", 1000); dht.Put("key1", "value2", 2000); IList expected = new ArrayList(); expected.Add("value1"); expected.Add("value2"); DhtGetResult[] result = dht.Get("key1"); foreach (DhtGetResult rs in result) { Assert.IsTrue(expected.Contains(rs.valueString)); } }