public void TestMoveIndex() { 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.MoveIndex(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()); res = _client.ListIndexes(); Assert.IsTrue(Include((JArray)res["items"], "name", safe_name("àlgol?à-csharp2"))); Assert.IsFalse(Include((JArray)res["items"], "name", safe_name("àlgol?à-csharp"))); _client.DeleteIndex(safe_name("àlgol?à-csharp2")); }