Skip to content

Commit

Permalink
Color test for third init method
Browse files Browse the repository at this point in the history
  • Loading branch information
RSully committed Mar 31, 2014
1 parent 798cc84 commit c6f0ff9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RSColorPickerTests/RSColorPickerStateTests.m
Expand Up @@ -81,6 +81,12 @@ - (void)testColor_initWithScaledRelativePoint {
[self assertColor:expectedColor equalsColor:state.color];
}

- (void)testColor_stateForPointSizePadding {
RSColorPickerState *state = [RSColorPickerState stateForPoint:CGPointMake(100, 100) size:200 padding:0];
UIColor *expectedColor = [UIColor whiteColor];
[self assertColor:expectedColor equalsColor:state.color];
}



- (void)testSelectionLocationWithSizePadding {
Expand Down

0 comments on commit c6f0ff9

Please sign in to comment.