From 4e1139a73b03aa042ac0ce408f69a58d62ca9077 Mon Sep 17 00:00:00 2001 From: oneRain Date: Tue, 6 Aug 2019 15:21:39 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E7=AE=80=E5=8D=95=E7=9A=84=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Storage/Storage.Test/QueryTest.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Storage/Storage.Test/QueryTest.cs b/Storage/Storage.Test/QueryTest.cs index 005e0ad..354646c 100644 --- a/Storage/Storage.Test/QueryTest.cs +++ b/Storage/Storage.Test/QueryTest.cs @@ -10,15 +10,23 @@ namespace LeanCloudTests { AVClient.Initialize(new AVClient.Configuration { ApplicationId = "BMYV4RKSTwo8WSqt8q9ezcWF-gzGzoHsz", ApplicationKey = "pbf6Nk5seyjilexdpyrPwjSp", - RTMServer = "https://router-g0-push.avoscloud.com", + ApiServer = "https://avoscloud.com" }); AVClient.HttpLog(TestContext.Out.WriteLine); } [Test] public async Task TestQuery() { - var query = new AVQuery("Foo"); - query.WhereEqualTo("content", "hello, world"); + var query = new AVQuery("Foo").WhereEqualTo("content", "hello"); + var results = await query.FindAsync(); + foreach (var result in results) { + TestContext.Out.WriteLine(result.ObjectId); + } + } + + [Test] + public async Task TestQueryCount() { + var query = new AVQuery("Foo").WhereEqualTo("content", "hello, world"); var count = await query.CountAsync(); Assert.Greater(count, 8); }