summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs')
-rw-r--r--TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs b/TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs
index 7b2944f..f834178 100644
--- a/TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs
+++ b/TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs
@@ -14,9 +14,9 @@ namespace TwoStepsAuthenticator.UnitTests {
public void CreateKey() {
var authenticator = new CounterAuthenticator();
var secret = Authenticator.GenerateKey();
- var code = authenticator.GetCode(secret, 0L);
+ var code = authenticator.GetCode(secret, 0uL);
- Assert.IsTrue(authenticator.CheckCode(secret, code, 0L), "Generated Code doesn't verify");
+ Assert.IsTrue(authenticator.CheckCode(secret, code, 0uL), "Generated Code doesn't verify");
}
// Test Values from http://www.ietf.org/rfc/rfc4226.txt - Appendix D