public void PrivateKeyIsPassedCorrectly() { var key = "TestKey"; var target = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, key); Assert.AreEqual(key, target.PrivateKey); }
public void GetRecaptchaVerificationHelperWithKeyReturnsVerificationHelper() { var result = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, Key); Assert.IsInstanceOfType(result, typeof(RecaptchaVerificationHelper)); }
public void VerifyRecaptchaResponseTaskAsyncReturnsTaskOfRecaptchaVerificationResult() { var target = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, "TestKey"); Assert.IsInstanceOfType(target.VerifyRecaptchaResponseTaskAsync(), typeof(Task <RecaptchaVerificationResult>)); }
public void VerifyRecaptchaResponseReturnsRecaptchaVerificationResult() { var target = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, "TestKey"); Assert.IsInstanceOfType(target.VerifyRecaptchaResponse(), typeof(RecaptchaVerificationResult)); }
public void ResponseIsString() { var target = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, "TestKey"); Assert.IsInstanceOfType(target.Response, typeof(string)); }
public void UserHostAddressIsString() { var target = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, "TestKey"); Assert.IsInstanceOfType(target.UserHostAddress, typeof(string)); }
public void UseSslIsBoolean() { var target = RecaptchaMvcExtensions.GetRecaptchaVerificationHelper(null, "TestKey"); Assert.IsInstanceOfType(target.UseSsl, typeof(bool)); }