Created
September 18, 2018 20:21
-
-
Save codeman7/bdace33da64539fadbe3a38bc5203501 to your computer and use it in GitHub Desktop.
Testing colors in ObjectiveC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIColor *expectedColor = [UIColor.blackColor colorWithAlphaComponent:0.87]; | |
UIColor *titleColor = self.actionSheet.header.titleLabel.textColor; | |
XCTAssertEqualObjects(expectedColor, titleColor); // Doesn't work | |
XCTAssertEqualObjects(self.actionSheet.header.titleLabel.textColor, | |
[UIColor.blackColor colorWithAlphaComponent:0.87]); // Works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment