void WaitForIndexing() { Assert.Equal(0, store.DocumentDatabase.Statistics.ApproximateTaskCount); while (store.DocumentDatabase.Statistics.StaleIndexes.Length > 0) { Debug.WriteLine("waiting for indexes..."); Thread.Sleep(100); } }