-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMTCaptchaTest.cs
More file actions
28 lines (25 loc) · 905 Bytes
/
MTCaptchaTest.cs
File metadata and controls
28 lines (25 loc) · 905 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
using System.Collections.Generic;
using System.Threading.Tasks;
using NUnit.Framework;
using TwoCaptcha.Captcha;
namespace TwoCaptcha.Tests
{
[TestFixture]
public class MTCaptchaTest : AbstractWrapperTestCase
{
[Test]
public async Task TestAllOptions()
{
MTCaptcha mtCaptcha = new MTCaptcha();
mtCaptcha.SetSiteKey("MTPublic-KzqLY1cKH");
mtCaptcha.SetPageUrl("https://2captcha.com/demo/mtcaptcha");
var parameters = new Dictionary<string, string>();
parameters["method"] = "mt_captcha";
parameters["sitekey"] = "MTPublic-KzqLY1cKH";
parameters["pageurl"] = "https://2captcha.com/demo/mtcaptcha";
parameters["soft_id"] = "4582";
parameters["json"] = "0";
await CheckIfCorrectParamsSendAndResultReturned(mtCaptcha, parameters);
}
}
}