summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs
diff options
context:
space:
mode:
authorChristoph Enzmann <christoph.enzmann@confer.ch>2013-12-06 15:03:39 +0100
committerChristoph Enzmann <christoph.enzmann@confer.ch>2013-12-06 15:03:39 +0100
commitff91ec6adbf7f1c816b645844e7f83f4be74e548 (patch)
tree479ebe1402da9137f33a9ce541557275935a69fc /TwoStepsAuthenticator.UnitTests/CounterAuthenticatorTests.cs
parent30796603c880f5253e655789f4dfe71a170becf7 (diff)
downloadTwoStepsAuthenticator-ff91ec6adbf7f1c816b645844e7f83f4be74e548.zip
TwoStepsAuthenticator-ff91ec6adbf7f1c816b645844e7f83f4be74e548.tar.gz
TwoStepsAuthenticator-ff91ec6adbf7f1c816b645844e7f83f4be74e548.tar.bz2
Always use UsedCodeManager
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