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

36 lines
871 B
C#
Raw Normal View History

using NUnit.Framework;
using System.Threading.Tasks;
using LeanCloud;
using LeanCloud.Storage;
using static NUnit.Framework.TestContext;
namespace Storage.Test {
public class CaptchaTest {
[SetUp]
public void SetUp() {
2021-04-07 18:08:17 +08:00
Utils.SetUp();
}
[TearDown]
public void TearDown() {
2021-04-07 18:08:17 +08:00
Utils.TearDown();
}
//[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");
}
}
}