csharp-sdk-upm/Storage/Storage.Test/CaptchaTest.cs

25 lines
688 B
C#
Raw Normal View History

using NUnit.Framework;
using System.Threading.Tasks;
using LeanCloud.Storage;
using static NUnit.Framework.TestContext;
namespace Storage.Test {
2021-04-29 15:58:22 +08:00
public class CaptchaTest : BaseTest {
//[Test]
public async Task Request() {
LCCapture captcha = await LCCaptchaClient.RequestCaptcha();
WriteLine($"url: {captcha.Url}");
WriteLine($"token: {captcha.Token}");
Assert.NotNull(captcha);
Assert.NotNull(captcha.Url);
Assert.NotNull(captcha.Token);
}
//[Test]
public async Task Verify() {
await LCCaptchaClient.VerifyCaptcha("on2r", "1TUDkEMu");
}
}
}