public void TestCopyIndex() { var index = _client.InitIndex(safe_name("àlgol?à-csharp2")); clearTest(); var task = _index.AddObject(JObject.Parse(@"{""firstname"":""Jimmie"", ""lastname"":""Barninger"", ""objectID"":""1""}")); _index.WaitTask(task["taskID"].ToString()); task = _client.CopyIndex(safe_name("àlgol?à-csharp"), safe_name("àlgol?à-csharp2")); _index.WaitTask(task["taskID"].ToString()); var res = index.Search(new Query("")); Assert.AreEqual(1, res["nbHits"].ToObject <int>()); Assert.AreEqual("Jimmie", res["hits"][0]["firstname"].ToString()); _client.DeleteIndex(safe_name("àlgol?à-csharp2")); }