Permalink
Browse files

Add test to verify pre-generated registration code

  • Loading branch information...
Gleb Dolgich
Gleb Dolgich committed Sep 1, 2012
1 parent 666451d commit 5b0aa282485d8f4115cf29195d247b19983febf0
Showing with 7 additions and 0 deletions.
  1. +7 −0 objc/CocoaFobTests/CocoaFobTests.m
@@ -88,4 +88,11 @@ - (void)testGenerateAndVerify
STAssertTrue(result, @"Registration code could not be verified: %@", err);
}
+- (void)testVerify
+{
+ NSError *err = nil;
+ BOOL result = [self.verifier verifyRegCode:@"GAWQE-F9AQP-XJCCL-PAFAX-NU5XX-EUG6W-KLT3H-VTEB9-A9KHJ-8DZ5R-DL74G-TU4BN-7ATPY-3N4XB-V4V27-Q" forName:@"Joe Bloggs" error:&err];
+ STAssertTrue(result, @"Registration code could not be verified: %@", err);
+}
+
@end

0 comments on commit 5b0aa28

Please sign in to comment.