Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add test to verify pre-generated registration code

  • Loading branch information...
commit 5b0aa282485d8f4115cf29195d247b19983febf0 1 parent 666451d
Gleb Dolgich authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 objc/CocoaFobTests/CocoaFobTests.m
7 objc/CocoaFobTests/CocoaFobTests.m
@@ -88,4 +88,11 @@ - (void)testGenerateAndVerify
88 88 STAssertTrue(result, @"Registration code could not be verified: %@", err);
89 89 }
90 90
  91 +- (void)testVerify
  92 +{
  93 + NSError *err = nil;
  94 + 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];
  95 + STAssertTrue(result, @"Registration code could not be verified: %@", err);
  96 +}
  97 +
91 98 @end

0 comments on commit 5b0aa28

Please sign in to comment.
Something went wrong with that request. Please try again.