Permalink
Browse files
Add test to verify pre-generated registration code
- Loading branch information...
Showing
with
7 additions
and
0 deletions.
-
+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