Skip to content

Commit

Permalink
Merge 6ae1bec into f20551d
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawakatsumi committed Jan 12, 2015
2 parents f20551d + 6ae1bec commit 4d99b09
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Lib/UICKeyChainStoreTests/UICKeyChainStoreTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -961,4 +961,19 @@ - (void)testInstanceMethodsSetAndRemoveWithNilValue
XCTAssertNil(username);
}

- (void)testSetLabelAndComment
{
UICKeyChainStore *store = [UICKeyChainStore keyChainStoreWithService:@"Twitter"];

[store setString:@"kishikawakatsumi" forKey:@"username" label:@"Label" comment:@"Comment"];

NSString *username = [store stringForKey:@"username"];
XCTAssertEqualObjects(username, @"kishikawakatsumi");

[store setString:nil forKey:@"username"];

username = [store stringForKey:@"username"];
XCTAssertNil(username);
}

@end

0 comments on commit 4d99b09

Please sign in to comment.