Lines Matching refs:mechanism
60 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil];
61 BOOL result = [mechanism generateNextCode:nil];
64 XCTAssertGreaterThan(mechanism.code.length, 0);
70 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil];
71 [mechanism generateNextCode:nil];
73 XCTAssertGreaterThan(mechanism.progress, 0);
74 XCTAssertLessThan(mechanism.progress, 1);
75 XCTAssertFalse(mechanism.hasExpired);
81 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil];
82 [mechanism generateNextCode:nil];
85 XCTAssertEqual(mechanism.progress, 1);
86 XCTAssertTrue(mechanism.hasExpired);