-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathHCaptchaTest.cs
More file actions
30 lines (27 loc) · 1000 Bytes
/
HCaptchaTest.cs
File metadata and controls
30 lines (27 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections.Generic;
using System.Threading.Tasks;
using NUnit.Framework;
using TwoCaptcha.Captcha;
namespace TwoCaptcha.Tests
{
[TestFixture]
public class HCaptchaTest : AbstractWrapperTestCase
{
[Test]
public async Task TestAllOptions()
{
HCaptcha captcha = new HCaptcha();
captcha.SetSiteKey("f1ab2cdefa3456789012345b6c78d90e");
captcha.SetUrl("https://www.site.com/page/");
captcha.SetData("foo");
var parameters = new Dictionary<string, string>();
parameters["method"] = "hcaptcha";
parameters["sitekey"] = "f1ab2cdefa3456789012345b6c78d90e";
parameters["pageurl"] = "https://www.site.com/page/";
parameters["data"] = "foo";
parameters["soft_id"] = "4582";
parameters["json"] = "0";
await CheckIfCorrectParamsSendAndResultReturned(captcha, parameters);
}
}
}