Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test to verify pre-generated registration code

  • Loading branch information...
commit 5b0aa282485d8f4115cf29195d247b19983febf0 1 parent 666451d
Gleb Dolgich authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 objc/CocoaFobTests/CocoaFobTests.m
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.